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 Bootstrap): By default there is no lifecycle policy to manage the storage in CDK asset bucket #23801

Closed
2 tasks
harshitjain99 opened this issue Jan 23, 2023 · 3 comments
Assignees
Labels
duplicate This issue is a duplicate. feature-request A feature should be added or improved. package/tools Related to AWS CDK Tools or CLI

Comments

@harshitjain99
Copy link

Describe the feature

The CDK asset S3 bucket in default bootstrap template for the CDK Toolkit has no default lifecycle policy which leads to cumulative increase in storage over a period of time and not cost optimized solution for a customer.

Use Case

Customer created the CDK Toolkit stack with default bootstrap template have to incur the cost of the cumulative storage in the CDK asset S3 bucket over a period of time. This is not a cost effective solution.

Proposed Solution

There should be a default lifecycle policy enabled on CDK S3 bucket to manage the storage size.

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

Environment details (OS name and version, etc.)

NA

@harshitjain99 harshitjain99 added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Jan 23, 2023
@github-actions github-actions bot added the package/tools Related to AWS CDK Tools or CLI label Jan 23, 2023
@ByronBecker
Copy link

ByronBecker commented Feb 11, 2023

It looks like in S3 for each stack a zip and json file get uploaded, but each of these files a named with a hash so if you have multiple stacks that you deploy independently there's not a good way to determine which json & zip pertain to which stack, and what is the most recent deployment "version" of that stack.

@tim-finnigan tim-finnigan self-assigned this Feb 15, 2023
@tim-finnigan
Copy link

Hi @harshitjain99 thanks for the feature request. This seems to overlap with a recent issue (#21928) which was closed as a duplicate of #6692. In the most recent comment on that latter issue the following is mentioned:

No updates currently but there is a third party construct to help enable this for those that need something in the interim https://constructs.dev/packages/cloudstructs/v/0.6.18/api/ToolkitCleaner?lang=typescript

For tracking a built in solution aws/aws-cdk-rfcs#64 is the place to watch.

I think we should continue tracking this feature request in #6692 and close this as a duplicate for the sake of consolidating issues. If there are any distinctions you'd like to clarify please let us know.

We also recommend adding a 👍 to existing feature requests to show your support, and encourage you to leave comments there if you have any additional related use cases to share.

@tim-finnigan tim-finnigan added duplicate This issue is a duplicate. and removed needs-triage This issue or PR still needs to be triaged. labels Feb 15, 2023
@github-actions
Copy link

⚠️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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue is a duplicate. 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

3 participants