Skip to content

anantafaturdev/rds-guardian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

RDS Aurora Auto-Stop Script

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.


Features

  • ✅ 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.

Requirements

  • AWS CLI installed and configured (aws configure) with sufficient permissions:
    • rds:DescribeDBClusters
    • rds:StopDBCluster
    • ec2:DescribeRegions
  • Bash shell (Linux/MacOS)
  • Optional: tee command for combined log + console output

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages