Deploy AWS CDK stacks using CodePipeline
See original GitHub issueI 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:
- Created 3 years ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
This is now possible with the introduction of CDK pipelines: https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines-readme.html
Closing this issue for now. Feel free to reopen if you have more questions.