Open closesimple-wl opened 1 year ago
Could you provide minimal reproduction code please? I'm not sure how you have this setup in CDK
Minimal-ish reproduction repo: https://github.com/closesimple-wl/codepipeline-repro
I realize the reproduction repo's code isn't the correct approach because I need a separate stack for the other region's resource(s). But even after stripping it down to direct cdk synthesize
on a single App
with two Stack
, the error message is the same.
So regardless of the example code not being correct according to https://github.com/aws/aws-cdk/blob/af998c8581d2600fa4aa8d5fc5137da84d0f3418/packages/aws-cdk-lib/README.md?plain=1#L228, this still appears to be a real bug.
Is there any workaround for this problem?
Describe the bug
I understand
crossRegionReferences
is experimental, but I'd expect to actually get it deployed.The problem seems related to the
CrossRegionSupportStack
. The most relevant part of the stack trace looks like:Expected Behavior
No error when using cross-region CodePipeline action.
Current Behavior
Reproduction Steps
CodePipeline construct with an existing
Project.fromProjectArn()
CodeBuild Project in a different region than the pipeline. Attempt to deploy.https://github.com/closesimple-wl/codepipeline-repro
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.95.1 (build ae455d8)
Framework Version
No response
Node.js Version
16
OS
macOS 13.4
Language
Typescript
Language Version
No response
Other information
No response