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

CDK CLI: TTL Option for bootstrap bucket #21928

Closed
2 tasks
mikebroberts opened this issue Sep 6, 2022 · 4 comments
Closed
2 tasks

CDK CLI: TTL Option for bootstrap bucket #21928

mikebroberts opened this issue Sep 6, 2022 · 4 comments
Assignees
Labels
feature-request A feature should be added or improved. package/tools Related to AWS CDK Tools or CLI

Comments

@mikebroberts
Copy link

Describe the feature

Be able to specify an optional TTL in days as a command line argument when running cdk bootstrap . This would translate to a lifecycle policy with an "ExpirationInDays" value on the CDK bootstrap bucket.

Use Case

For teams who solely use cdk deploy to deploy, rather than a separate synth vs subsequent deploy, and (for example) who don't have containers in their stack, the current bootstrap bucket will grow without constraint for no good reason. For such teams it would be useful to be able to specify at bootstrap time a lifecycle policy on the bootstrap bucket to expire contents after (say) 7 days.

The current workarounds are (a) to use a custom bootstrap template, but that is a lot more work when capturing future CDK changes, or (b) to manually add a lifecycle policy to the bootstrap bucket, but that introduces drift.

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.36.0

Environment details (OS name and version, etc.)

Mac, latest version

@mikebroberts mikebroberts added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Sep 6, 2022
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Sep 6, 2022
@jogold
Copy link
Contributor

jogold commented Sep 6, 2022

@peterwoodworth
Copy link
Contributor

We're actually working on a feature real similar to this which should address your needs @mikebroberts. I'm going to close this as a duplicate of #6692

Until we introduce this feature, you can customize the bootstrap template to configure a lifecycle policy, or anything else on your bootstrapping resources

@peterwoodworth peterwoodworth removed the needs-triage This issue or PR still needs to be triaged. label Sep 7, 2022
@github-actions
Copy link

github-actions bot commented Sep 7, 2022

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

@mikebroberts
Copy link
Author

@peterwoodworth - thanks. I did see that issue but until you just changed the issue name it seemed ECR specific, which is why I posted this new issue.

I mentioned the custom template in my original issue - there are long term maintainability issues with such an approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved. package/tools Related to AWS CDK Tools or CLI
Projects
None yet
Development

No branches or pull requests

4 participants