AWS Lightsail VPS Deployment: Static IPs, Snapshots and Burst Credits

Lightsail is the part of AWS that behaves like a normal VPS provider: fixed monthly price, a console with an instance list, static IPs you attach with one click, and snapshots billed per GB-month. It is also the part with the sharpest edges — burst credits that expire silently, a data transfer allowance counted in both directions, and a private network that only routes between instances in the same region. Below is a deployment sequence and the settings that matter after the instance is running.

Blueprint and plan selection

Blueprints are split into operating systems and apps. The plain OS blueprints — Ubuntu 24.04, Debian 12, AlmaLinux 9 — give you a clean image with SSH key injection and no surprises. The app blueprints (WordPress, LAMP, Node.js, Plesk, cPanel) preinstall a stack and consume more of the instance’s memory at idle; a 2 GB instance running the WordPress blueprint typically lands at 700–900 MB used before you add plugins.

Plan sizes are named by memory: 512 MB, 1, 2, 4, 8 GB and upward, each with 2 vCPUs, a fixed SSD or NVMe disk, and a transfer allowance of 2–7 TB. The $5 and $7 tiers are on shared burstable CPUs; from the $12 tier up you get dedicated compute. If your workload is CPU-steady — build agents, game servers, video transcoding — start at the dedicated tier and skip the burst-credit guessing game entirely.

Creating and attaching a static IP

Every instance gets a public IP that changes on stop and start. Attach a static IP before you point DNS anywhere. The CLI equivalent is two calls: allocate, then attach. Note that a static IP left unattached accrues a small hourly charge, which is AWS’s way of discouraging hoarding.

$ aws lightsail allocate-static-ip --static-ip-name web01-ip
$ aws lightsail attach-static-ip --static-ip-name web01-ip --instance-name web01

$ aws lightsail get-static-ip --static-ip-name web01-ip \
    --query 'staticIp.{name:name,ip:ipAddress,attached:attachedTo}'

Opening the firewall is a separate step from anything the OS does. The Lightsail firewall sits in front of the instance, so an nginx listening on 80 still returns nothing until you open 80 in the console or via put-instance-public-ports. Both layers must agree, and confusion between them accounts for most “my site is up but unreachable” tickets.

$ aws lightsail put-instance-public-ports --instance-name web01 \
    --port-infos fromPort=22,toPort=22,protocol=tcp \
                fromPort=80,toPort=80,protocol=tcp \
                fromPort=443,toPort=443,protocol=tcp

Networking and private addresses

Instances in the same region share a private network over 172.26.0.0/16. Traffic between them on those addresses does not count against the transfer allowance. Put the database and the app server on the same private network and bind MySQL or Postgres to the private IP only — never 0.0.0.0 — then keep 3306 or 5432 closed in the public firewall.

The private network does not span regions or connect to your VPC without VPC peering, which is available on Lightsail but configured from the VPC console, not the Lightsail one. Cross-region traffic leaves over the public internet and is billed. For multi-region setups, plan a read replica or a CDN rather than assuming the private network extends.

Snapshots, backups and the 7-day window

Automatic snapshots retain seven daily copies per instance and can be extended to up to 35 days for a price. Manual snapshots persist until deleted. Snapshots are billed at $0.05 per GB-month, so a 40 GB disk with 30 retained copies costs meaningfully more than the instance itself — schedule pruning rather than snapshotting forever.

$ aws lightsail create-instance-snapshot \
    --instance-name web01 --instance-snapshot-name web01-$(date +%F)

$ aws lightsail get-instance-snapshots \
    --query 'instanceSnapshots[?instanceName==`web01`].[name,createdAt,sizeInGb]' \
    --output table

A snapshot restores to a new instance, not in place. That is a strength for rollbacks — keep the broken instance running while you boot a clone from last night’s snapshot — but it also means a restore always needs a follow-up step to reattach the static IP. Script the attach call so a recovery takes seconds rather than an incident review.

Burst credits and CPU monitoring

Burstable instances earn CPU credits while idle and spend them under load. Credits accrue at a baseline rate per plan (5% to 20% of a vCPU, depending on tier) and cap at a plan-specific maximum. A sustained process that exceeds the baseline drains the balance and then throttles to baseline — visible as latency cliff, not as an error.

Check the balance before chasing an application bug:

$ aws cloudwatch get-metric-statistics \
    --namespace AWS/Lightsail --metric-name BurstCapacityPercentage \
    --dimensions Name=InstanceName,Value=web01 \
    --start-time $(date -u -d '-24 hours' +%FT%TZ) \
    --end-time $(date -u +%FT%TZ) \
    --period 300 --statistics Average

# on the guest, confirm what the kernel sees
$ cat /proc/pressure/cpu
some avg10=32.14 avg60=18.02 avg300=4.11 total=918273

A some avg10 above 20 on a single-core workload usually means throttling rather than contention. Moving to a larger plan or a dedicated-CPU tier is the fix; tuning the application rarely is. For a broader look at how plan sizing interacts with CPU allocation, see our VPS spec tradeoff analysis.

Operating cost control

Three levers dominate the bill: instance size, snapshot retention and data transfer. Transfer is metered outbound, and the allowance resets monthly — a backup job that pushes 200 GB nightly will blow through even the 7 TB tier by mid-month. Compress and deduplicate before you send, or move backups to object storage where egress to Lightsail instances in the same region is free.

Tag every instance and snapshot with owner and environment. aws lightsail tag-resource accepts both, and Cost Explorer can then group by tag. Without tags, a handful of forgotten staging instances and their snapshots quietly double a small team’s monthly spend. If you are weighing Lightsail against a flat-rate provider, our VPS comparison table lists what each plan includes so you can compare like for like.

When Lightsail is the wrong answer

Lightsail stops being economical once you need autoscaling groups, load balancers with advanced routing, or IAM roles on instances — those live in EC2. It also lacks the failure-domain controls of a real VPC setup. For a single app server, a staging box, a VPN endpoint or a small database, it is one of the least painful ways to run a VPS on AWS. Above that threshold, migrate rather than fight the ceiling.

Deployment itself should be scripted from day one. A short shell script that allocates the instance, attaches the IP, opens ports and runs an Ansible playbook makes the platform’s constraints visible in code, and makes leaving for another provider a matter of rewriting one file rather than a week of manual migration. If you would rather skip the platform ceiling entirely, our KVM VPS plans give you root and a flat monthly price from the start.

Leave a Reply