question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
hoegertncommented, Apr 12, 2021

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

0reactions
github-actions[bot]commented, Apr 13, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

aws-cdk/core module
Uses predefined asset locations and roles created by the modern bootstrap template. Access control is done by controlling who can assume the deploy...
Read more >
The Power of AWS & CORE - 5th Kind
CORE is designed to support multiple workflows in a studio environment, differentiating itself from other asset management solutions that focus only on ...
Read more >
How to reuse patterns when developing infrastructure as code
... the AWS Cloud Development Kit (AWS CDK) constructs and AWS CloudFormation modules and how they can be used to make building application....
Read more >
Building with the new AWS SDKs for Rust, Kotlin, and Swift
Writing code in Rust, Kotlin, and Swift for AWS has never been as easy as it is now. In this session, we'll explore...
Read more >
SD Software asset management notes - ServiceNow Community
Activates a portal framework that allows administrators to build a mobile-friendly self service experience for users. Activation of this plugin ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found