(aws-core): Reuse built assets
See original GitHub issue❓ General Issue
The Question
Once I run something like cdk deploy "*"
AWS CDK firstly builds all assets (e.g. Lambda Layer) with docker (if specified so), creates cdk.out
directory, and lastly sequently deploys to CloudFormation.
Is there a possibility to ask AWS CDK to reuse built assets from a previous execution - something like cdk deploy "*" --reuse-assets
(I think that the. -E, --build-exclude
option somehow can be used but I am not sure whether its the right one and the documentation is very minimal).
The general problem that I have is: Building lambda layers with docker (installing various dependencies, etc.) is not only time-demanding but also very memory-demanding, hence parallel stack deployments become very very very memory-demanding. If I could build assets once and reuse them in my parallel deployments I would save time and memory.
Environment
Not relevant.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top GitHub Comments
No, it overrides the app definition and tells CDK to deploy the assembly directly without synth:
I wrote a blog post about deployments here: https://taimos.de/blog/deploying-your-cdk-app-to-different-stages-and-environments
⚠️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.