Skip to content

Instantly share code, notes, and snippets.

@gordonmurray
Last active October 30, 2023 17:05
Show Gist options
  • Save gordonmurray/2c1bca2a6816be50577e3867dadb53d7 to your computer and use it in GitHub Desktop.
Save gordonmurray/2c1bca2a6816be50577e3867dadb53d7 to your computer and use it in GitHub Desktop.
Simple script to list all RDS instances and then disable Automatic Minor Version Upgrades
# Simple script to list all RDS instances and then disable Automatic Minor Version Upgrades
# list RDS instances to a file
aws rds --region eu-west-1 describe-db-instances | jq -r '.DBInstances[].DBInstanceIdentifier' > rds.log
# loop over the items in the file, disable auto minor version upgrades
while read rds; do
aws rds modify-db-instance --region eu-west-1 --db-instance-identifier ${rds} --no-auto-minor-version-upgrade
sleep 5
done <rds.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment