A simple Bash script to automatically stop all AWS Aurora DB clusters across all regions.
Perfect for students or small budgets who don’t want inactive RDS clusters to auto-start and rack up unexpected bills.
💡 Personal story: Sometimes I forget if I even have RDS clusters. AWS will automatically start stopped Aurora clusters after 7 days. This script prevents surprise charges by stopping them every 10 minutes.
- ✅ Stops all Aurora DB clusters (Aurora MySQL & Aurora PostgreSQL) in all AWS regions.
- ✅ Skips clusters that are already stopped or in other statuses.
- ✅ Safe logging with timestamps.
- ✅ Designed for cron automation (e.g., every 10 minutes).
- ✅ Minimal manual configuration required.
- AWS CLI installed and configured (
aws configure) with sufficient permissions:rds:DescribeDBClustersrds:StopDBClusterec2:DescribeRegions
- Bash shell (Linux/MacOS)
- Optional:
teecommand for combined log + console output