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

aws rds describe-db-instances | jq '.[][] | select(.DeletionProtection == false) | .DBInstanceIdentifier' | xargs -L1 -t aws rds modify-db-instance --deletion-protection --db-instance-identifier
Claus-Theodor Riegg About 4 years ago