Skip to content

chore(infra): run dev and release hosts on Lightsail nano - #601

Merged
Collaboration95 merged 1 commit into
devfrom
guru/lightsail-nano
Nov 14, 2026
Merged

Collaboration95 merged 1 commit into
devfrom
guru/lightsail-nano

Conversation

@Collaboration95

Copy link
Copy Markdown
Owner

Lightsail passed 75% of its November free allowance, so on 15 Nov 2026 both hosts were moved from micro_3_0 (1 GB, US$7/month) to nano_3_0 (512 MB, US$5/month). The change was made directly with the AWS CLI; this PR records it in Terraform so a later plan does not switch them back.

  • 14-day usage before the change: dev averaged 4% CPU with burst credit at 100%, and the runtime used about 150 MB RSS. Release ran no containers.
  • Each host was rebuilt under the same name with its existing static IP, so the CloudFront origins and URLs are unchanged: dev d2m6kz76y4kuvm returns 200; release d2r0xzy7vz590e returns 504, as it did before.
  • The deploy-role Lightsail policies were updated to the new instance ARNs. Dev was redeployed with Deploy dev (run 43619750790, green).
  • cloud-init.sh now adds 1 GiB of swap and turns off multipathd, ModemManager, udisks2 and fwupd on new hosts. After the deploy, dev used 225 MB of RAM plus 160 MB of swap.
  • Rollback snapshots rewind-demo-micro-20261115 and rewind-release-micro-20261115 were taken before the rebuild.

Both hosts idle (dev ~4% CPU, release no containers) and were rebuilt on
nano_3_0 (512 MB, US$5/month) on 15 Nov 2026 with their static IPs, so the
CloudFront origins and URLs are unchanged. Record the bundle so a later plan
does not flip them back, and give new hosts 1 GiB swap and fewer idle daemons.
@Collaboration95
Collaboration95 merged commit ada57c1 into dev Nov 14, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant