(assets): force re-generation of assets via the CLI (Re-open issue #12800) #31051
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
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:
cdk deploy --concurrency 2
has chance to create and permanently upload corrupted asset to S3 #23290Historical issues that require re-publish asset:
Proposed tickets that is now closed:
Acknowledgements
CDK version used
1.150.0
Environment details (OS name and version, etc.)
Ubuntu 22.04
The text was updated successfully, but these errors were encountered: