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 #12800

Closed
nija-at opened this issue Feb 1, 2021 · 4 comments
Closed

(assets): force re-generation of assets via the CLI #12800

nija-at opened this issue Feb 1, 2021 · 4 comments
Labels
@aws-cdk/assets Related to the @aws-cdk/assets package closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p1

Comments

@nija-at
Copy link
Contributor

nija-at commented Feb 1, 2021

We hit a bug in NodeJS version that generated corrupted assets.

The problem is that just changing to a non-buggy version of NodeJS is insufficient. This is because the assets are cached in the cdk.out/ directory and cached in the staging S3 bucket.
To resolve this issue, both has to be manually deleted.

This is a request to provide an option via the CLI where all asset caches are ignored and asset packaging/staging is re-run.


This is a 🚀 Feature Request

@nija-at nija-at added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Feb 1, 2021
@github-actions github-actions bot added the @aws-cdk/assets Related to the @aws-cdk/assets package label Feb 1, 2021
@eladb eladb added effort/small Small work item – less than a day of effort p1 labels Feb 15, 2021
@eladb eladb removed their assignment Feb 25, 2021
@ryparker ryparker removed the needs-triage This issue or PR still needs to be triaged. label Jun 3, 2021
@github-actions
Copy link

github-actions bot commented Jun 3, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

@github-actions github-actions bot added closing-soon This issue will automatically close in 4 days unless further comments are made. closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. and removed closing-soon This issue will automatically close in 4 days unless further comments are made. labels Jun 3, 2022
@github-actions github-actions bot closed this as completed Jun 8, 2022
@diranged
Copy link

I'd like to re-open this... we are running into this bug relatively frequently with our integration tests. I suspect we're running into #23290 somehow with the integration test runner, but it's causing a ton of pain for us. We would really like to be able to disable the cache for builds.

@jk2l
Copy link

jk2l commented Aug 7, 2024

I would like to re-open this too. I encountered this bug in prod environment #30967

One of our developer done a prod release via --exclusive flag, this caused the asset bundled without dependency, our lambda was completely broken, because of the CDK ignore asset upload if it already exist. Both of CodePipeline or local CDK cli won't fix the issue.

At the end I need to manually go into S3 bucket hunt down each one of those lambda zip file in the staging asset bucket, and delete them manually. This is not really an ideal situation, lucky we only affected very few lambda during this deployment, but imagine if i have a deployment that trigger lot of lambda this will be a nightmare to fix (e.g. i recently deployed 1000 lambda update accross 70 accounts, because Python3.7 retired with EOL)

@jk2l
Copy link

jk2l commented Aug 7, 2024

Also this issue should be looked at consider we have 3 opened bug reported issue over few years, we do have a strong case of this feature is needed to fix the issue in case things go wrong

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 closed-for-staleness This issue was automatically closed because it hadn't received any attention in a while. effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p1
Projects
None yet
Development

No branches or pull requests

5 participants