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

Add support for AWS Backup recovery point deletion #9459

Open
tnielsen2 opened this issue Apr 24, 2024 · 0 comments
Open

Add support for AWS Backup recovery point deletion #9459

tnielsen2 opened this issue Apr 24, 2024 · 0 comments

Comments

@tnielsen2
Copy link

tnielsen2 commented Apr 24, 2024

Describe the feature

Add support for resource deletion for recovery points taken by AWS Backup.

Extra information or context

C7N is unable to delete AWS Backup recovery points. Below is the output of a policy using the aws.ebs-volume resource type intended to cleanup orphaned EBS snapshots.

An error occurred (InvalidParameterValue) when calling the DeleteSnapshot operation: This snapshot is managed by the AWS Backup service and cannot be deleted via EC2 APIs. If you wish to delete this snapshot, please do so via the Backup console.

When discussing this issue in the C7N Slack, @kapilt suggested that I submit a feature request, as this is currently not supported.

Use case:

When AWS Backup plans are deleted, the recovery points taken by the backup plan remain and are not cleaned up by the normal aging process within the backup plan because the plan no longer exists.

There have also been other situations where an IAM role associated with the plan changes, leaving the plan unable to remove the snapshots created by the other role because it is replaced/changed.

In summary, there are times when AWS Backup will leave snapshots lying around, increasing cost over time due to the length of snapshot deltas.

It would be excellent if there were support for AWS Backup recovery point cleanup, starting with EBS, AMI and RDS recovery points. I am also aware that AWS Backup supports multiple services as outlined here, but it would be excellent if EBS, AMI, RDS, EFS, and S3 recovery points were supported.

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

No branches or pull requests

1 participant