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.

Deploy AWS CDK stacks using CodePipeline

See original GitHub issue

I would like to build my AWS CDK stack in CodeBuild using cdk synth into an artifact, and then deploy the artifact with CodePipeline using its built-in CloudFormation deployment feature.

When I try to do that, I get an error about missing parameters. I can’t figure out how to pass the right parameters to CodePipeline. It seems that AWS CDK only generates the required parameters when using cdk deploy.

The parameters are like:

AssetParameters66eaa5211f0e5a7e13085d03b9a2660bca429dd36d6f2ff63caaad265fa82d05ArtifactHash42F81164
AssetParameters66eaa5211f0e5a7e13085d03b9a2660bca429dd36d6f2ff63caaad265fa82d05S3Bucket8B26DF3A
AssetParameters66eaa5211f0e5a7e13085d03b9a2660bca429dd36d6f2ff63caaad265fa82d05S3VersionKeyC231E1D0

I have a project where a single Git repository builds 13 CloudFormation stacks. It would be nice to use CodePipeline to deploy them, instead of trying to handle all the cdk deploy processes in CodeBuild. It seems like the right way to do deploy CloudFormation stacks anyway.

Maybe there already is some way to pass these parameters from CDK to CodePipeline?


This is a 🚀 Feature Request

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
christophgysincommented, Jul 15, 2020

This is now possible with the introduction of CDK pipelines: https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines-readme.html

0reactions
SomayaBcommented, Apr 28, 2020

Closing this issue for now. Feel free to reopen if you have more questions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Continuous integration and delivery (CI/CD) using CDK ...
CDK Pipelines are self-updating. If you add application stages or stacks, the pipeline automatically reconfigures itself to deploy those new stages or stacks....
Read more >
AWS CDK Deploy Pipeline using AWS CodePipeline - GitHub
This repository describes how to customize AWS CodePipeline to deploy AWS CDK application. Specifically, this repository describes how to implement a deployment ......
Read more >
Deploy stacks in parallel with AWS CDK Pipelines
The AWS CDK Pipelines is a higher level construct that creates a customized AWS Codepipeline specifically for deploying CDK stacks on AWS ...
Read more >
Creating AWS CodePipeline Using AWS CDK - Towards AWS
AWS CodePipeline is a fully managed service that helps to automate the application's continuous delivery process. CodePipeline automates the build, test, ...
Read more >
CI/CD With AWS CodePipeline - Level Up Coding
1. Setup the Initial Code Base of CDK Project ... Create a folder and give the name of your preference ('aws-codepipeline-project' in mine)....
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