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 example policy to add lifecycle policy on bucket delete to empty bucket #8196

Merged
merged 3 commits into from
Jan 24, 2023

Conversation

circa10a
Copy link
Contributor

This PR adds an example custodian policy which adds an S3 lifecycle policy to a S3 buckets when a DeleteBucket event is triggered. This is a useful example for environments that are designed for standup/teardown and are more ephemeral in nature. It's a manual process to empty buckets and is much more efficient to have AWS do the work behind the scenes.

It took me a bit to get this together and working so I thought it would be good for other consumers to reference if they had a similar use case.

@circa10a circa10a requested a review from kapilt as a code owner January 23, 2023 19:46
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 23, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: circa10a / name: Caleb Lemoine (6a9543a)

@thisisshi
Copy link
Member

Could you please take a look at and sign the CLA linked above? Direct link here: https://api.easycla.lfx.linuxfoundation.org/v2/repository-provider/github/sign/14202841/52837350/7664/#/?version=2 Thank you!

@thisisshi thisisshi merged commit bdda464 into cloud-custodian:master Jan 24, 2023
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

Successfully merging this pull request may close these issues.

2 participants