Interview Prep/AWS/RDS, Aurora and DynamoDB

`InvalidParameterCombination: Cannot delete protected DB Instance, please disable deletion protection and try again.`

BeginnerTroubleshootingRDS, Aurora and DynamoDB
Answer

Likely causes → Deletion protection is on, which is the intended safeguard.

Diagnose →

aws rds describe-db-instances --db-instance-identifier old-db --query 'DBInstances[].DeletionProtection'

Fix →

aws rds modify-db-instance --db-instance-identifier old-db --no-deletion-protection --apply-immediately
aws rds delete-db-instance --db-instance-identifier old-db --final-db-snapshot-identifier old-db-final

Prevent → Keep deletion protection on in production. Require a final snapshot, and do the disable step through a change ticket, not by hand.

aws All AWS questions Roadmap: AWS core services

More on RDS, Aurora and DynamoDB