Skip to content

Guidance/tips/tricks for developing CDK code that can synth CloudFormation templates that work with quick-create links #31744

Answered by bracki
ottokruse asked this question in Q&A
Discussion options

You must be logged in to vote

We are doing exactly what you need in github.com/superwerker/superwerker.
Here's the build script: https://github.com/superwerker/superwerker/blob/main/.github/workflows/release.yml#L36-L53.
I order for that to work:

  • your CDK stack/app needs to be environment agnostic
  • you have to make sure Lambdas etc. are published to S3 buckets (in each region in the worst case, e.g. if you have AWS::Lambda::Function inside your templates, see here). Here's a script that publishes assets into the correct buckets. And here's the bucket creation script.
  • a custom stack synthesizer that uses the S3 buckets from above

See the "quick install" link on the release page for reference: https://github.com/superw…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ottokruse
Comment options

Answer selected by ottokruse
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ottokruse
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants