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

(assets): force re-generation of assets via the CLI (Re-open issue #12800) #31051

Open
1 of 2 tasks
jk2l opened this issue Aug 7, 2024 · 0 comments
Open
1 of 2 tasks
Labels
@aws-cdk/assets Related to the @aws-cdk/assets package effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2

Comments

@jk2l
Copy link

jk2l commented Aug 7, 2024

Describe the feature

Currently CDK ignore asset upload if asset already exist, the CDK will ignore publish it. However in a scenario the asset is corrupted due to bug, there is no way to fix it beside manually hunt down individual asset in S3 bucket and delete them.

Use Case

If the asset is corrupted/broken, admin should be able to force re-publish the the assets

Proposed Solution

add a new flag --force-publish, update the code under https://github.com/aws/aws-cdk/blob/main/packages/cdk-assets/lib/private/handlers/files.ts and update check related to objectExists() against the asset

Other Information

Historical issues that cause corrupted asset:

Historical issues that require re-publish asset:

Proposed tickets that is now closed:

Acknowledgements

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

CDK version used

1.150.0

Environment details (OS name and version, etc.)

Ubuntu 22.04

@jk2l jk2l added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Aug 7, 2024
@github-actions github-actions bot added the @aws-cdk/assets Related to the @aws-cdk/assets package label Aug 7, 2024
@ashishdhingra ashishdhingra added p2 effort/medium Medium work item – several days of effort and removed needs-triage This issue or PR still needs to be triaged. labels Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/assets Related to the @aws-cdk/assets package effort/medium Medium work item – several days of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

No branches or pull requests

2 participants