-
Hi there, My application utilizes three accounts [tooling, uat, prod]. A CodePipeline in the tooling account builds several application lambdas, and also has a build task to synthesize the application's CDK stack into CloudFormation. A CloudFormation CodeDeploy step then deploys the synthesized CloudFormation into uat and prod accounts. This has worked well until I introduced a
It seems that when I include the
Note in the synthesized output above, the S3Bucket and S3Key where CloudFormation expects to find the asset/code Though my CodeBuild step successfully executes Are the generated assets supposed to be copied into |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
May be similar to #20609 |
Beta Was this translation helpful? Give feedback.
-
CDK bundles up the assets in the account where ‘cdk synth’ is called (Account A). I don’t believe CDK understands or cares that CodePipeline in account A is assuming an account B role to deploy cloudformation, and that the assets only exist in account A’s CDK S3 bucket. I wrote a step in my codebuild to manually copy the assets post synthesis from account a to account b. |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
CDK bundles up the assets in the account where ‘cdk synth’ is called (Account A).
I don’t believe CDK understands or cares that CodePipeline in account A is assuming an account B role to deploy cloudformation, and that the assets only exist in account A’s CDK S3 bucket.
I wrote a step in my codebuild to manually copy the assets post synthesis from account a to account b.