Last active
October 30, 2023 17:05
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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