Do you really need your dev servers and databases ...
# random
p
Do you really need your dev servers and databases at night and on weekends? I'm excited to re-release 3 AWS cost-saving tools, now with Terraform support. 1. github.com/sqlxpert/lights-off-aws starts and stops EC2 instances plus RDS and Aurora databases, based on cron schedules in their tags. 2. github.com/sqlxpert/step-stay-stopped-aws-rds-aurora keeps infrequently-used RDS and Aurora databases stopped longer than 7 days. 3. github.com/sqlxpert/10-minute-aws-client-vpn demonstrates how Lights Off can save money by deleting and re-creating other resources that can't simply be started and stopped. There's an any-region Terraform module for each tool. Lights Off and Step-Stay Stopped also have multi-account, multi-region Terraform modules. You can continue to deploy directly with CloudFormation, too. I had planned to finish this release Monday, October 20, 2025, but we all know what happened that day. It turns out that a race condition and ties to a single region caused the AWS outage. On one hand it's the worst time to wrap up an AWS project, and on the other hand… • I am proud that from the first release of its predecessor in 2017, Lights Off has worked independently in each region where it's deployed. AWS's much more complicated Instance Scheduler relies on a central DynamoDB database created by default in … you guessed it …
us-east-1
! • I am also proud that Step-Stay Stopped, which I wrote in 2025, avoids race conditions present in every public alternative I found. Just as I demonstrated multi-region and multi-account deployment with CloudFormation in 2017, today I am demonstrating the enhanced region support introduced in the June, 2025 v6 Terraform AWS provider release. Though we can finally add
region =
to AWS resource definitions that we write ourselves, module publishers will have to catch up and pass this through. One of the best defenses we have against inevitable outages is IaC templates that can easily be deployed in multiple regions and don't rely on central resources. My 3 examples are free and open-source, released under GPLv3 for people to learn from, improve on, and incorporate into other projects, so long as people reciprocate by sharing the what they build. Have fun and keep building, in spite of alarmist reports that AWS (or cloud in general) is unreliable!
🚀 2
🐕 1