14 September,2023 by Rambler
Question: I'm trying to delete an RDS Instance with the following aws cli command but getting an error message. The RDS Instance is associated with an AWS Backup Continuous Backup supporting Point in Time Recovery
aws rds delete-db-instance --db-instance-identifier MyRDS --final-db-snapshot-identifier MyRDS130923
An error occurred (InvalidParameterCombination) when calling the DeleteDBInstance operation: Your RDS instance MyRDS is associated with an AWS Backup resource with id arn:aws:backup:us-west-2:3883838383:recovery-point:continuous:db-hdhdhdhdhdhdhdh. NoDeleteAutomatedBackups must be specified. For more details, see the AWS Backup documentation.
Answer: To confirm the RDS Instance is associated with the AWS Backup Continuous Backup run the following command , which returns the AwsBackupRecoveryPointArn Key , indicating the AWS Backup Recovery Point
aws rds describe-db-instances --db-instance-identifier MyRDS --query "DBInstances[].AwsBackupRecoveryPointArn"
To delete the RDS - if it is associated to the AWS Backup Continuous , you'll need to add the --no-delete-automated-backups.
aws rds delete-db-instance --db-instance-identifier MyRDS --final-db-snapshot-identifier MyRDS130923 --no-delete-automated-backups.
After the RDS has deleted , execute this command on AWS Backup and you'll notice the Continuous Recovery Point is still available and you can recover from this copy or you can recover from the final snapshot - which is available through the RDS service native backups
aws backup list-recovery-points-by-backup-vault --backup-vault-name TRV-Backup-Vault --query "RecoveryPoints[?ResourceName=='MyRDS']
Read More
AWS Backup continuous backup - RDS, DynamoDB , Aurora
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |