-
Notifications
You must be signed in to change notification settings - Fork 1
[PRMT-610] Check on existence of Backup Vault before deleting #435
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes a bug in the automated test environment teardown process where AWS Backup vault operations would fail when the vault doesn't exist. The fix adds a pre-check to verify the backup vault exists before attempting to retrieve recovery points.
- Adds existence check for backup vault before attempting recovery point operations
- Updates string quotes from single to double quotes for consistency
- Prevents teardown failures when backup vaults are already partially destroyed
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
chrisbloe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please can #433 be merged in first
Report for environment: ndr-devTerraform Initialization ⚙️
|
chrisbloe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable. Let's give it a try.
Don't want to approve my own main merge!
This was done as their is a small bug when the Test environment partially destroys.
Since the AWS command cannot tell us it doesn't exist (only you dont have permission because AWS can't infer to us if it exists or not for security reason) We first need to check if the Vault exists on the account prior to trying to retrieve the recovery points