-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Labels
@aws-cdk/aws-codepipeline-actionsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p1
Description
Using TagParameterContainerImage as a property for a stack in a different account causes a resolution error.
Reproduction Steps
const myPipeline = new MyPipeline(app, 'my-pipeline', {
env: nonprod
}
new MyFargateApp(app, 'my-app', {
env: prod
image: myPipeline.tagParameterContainerImage
}What did you expect to happen?
Stack my-app should reference the ECR repo from my-pipeline.
What actually happened?
Error: Resolution error: Resolution error: Resolution error: Resolution error: Resolution error: Cannot use resource 'my-app/FargateService/TaskDef/ExecutionRole' in a cross-environment fashion, the resource's physical name must be explicit set or use 'PhysicalName.GENERATE_IF_NEEDED'.
Environment
- CDK CLI Version : 1.107.0 (build 52c4434)
- Framework Version: 1.107.0
- Node.js Version: 14.16.0
- OS : WSL2 Ubuntu 20.04.02 LTS on Windows 10 1909
- Language (Version): TypeScript (3.9.9)
Other details
I'm using ApplicationLoadBalancedFargateService.
This is 🐛 Bug Report
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-codepipeline-actionsbugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p1