Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: delete_automated_backups = false Not Preventing Backup Deletion During RDS Instance Replacement for Point-in-Time Recover #587

Open
sumitsisodiya opened this issue Feb 27, 2025 · 0 comments

Comments

@sumitsisodiya
Copy link

I am encountering an issue with using the delete_automated_backups = false argument in the AWS RDS module while trying to perform a point-in-time recovery (PITR) on an RDS instance.

Here’s the scenario:

I am using Terraform to manage an RDS instance and I wish to restore it using a specific point in time.
The process requires passing the RDS instance name and the desired recovery time.
However, when I apply the Terraform configuration, the RDS instance is being deleted and then recreated, which, as per Terraform documentation, should not delete the automated backups when delete_automated_backups = false is set.
Despite setting this argument to false, the backups are still being deleted during the apply phase. This causes issues because in order for PITR to work, the automated backups should remain available, but they are deleted as part of the deletion and recreation of the RDS instance.
Expected Behavior:

The delete_automated_backups = false argument should prevent the deletion of automated backups during the replacement of the RDS instance, ensuring that backups are available for point-in-time recovery.
Actual Behavior:

The automated backups are deleted, which interferes with performing point-in-time recovery on the new instance after Terraform applies the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant