Andreas Vöst
2 years
Moritz Kraus
2 years
Florian Heinle
2 years
Florian Heinle
3 years
Andreas Vöst
4 years

HowTo: enable DeletionProtection for all RDS instances via aws cli and jq

Posted . Visible to the public.
aws rds describe-db-instances | jq '.[][] | select(.DeletionProtection == false) | .DBInstanceIdentifier' | xargs -L1 -t aws rds modify-db-instance --deletion-protection --db-instance-identifier
Keywords
termination, protection
Tags
License
Source code in this card is licensed under the MIT License.