-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
@aws-cdk/aws-codepipeline-actionsclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.guidanceQuestion that needs advice or information.Question that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Description
General Issue
Cross Account & Cross Region ECS
The Question
What is the recommended approach from CDK for cross account ECS deployments through codepipeline at present?
We have a code pipeline that needs to deploy a fargate service into multiple AWS accounts and regions.
The few things we considered were:
- Multi-stack approach where we have a pipeline stack with a
CodeBuildActionthat builds the actual service, pushes the container image to ECR and outputs animageTag. AnotherCodeBuildActiondoes acdk synthfor the service stack and outputs its template. We then useTagParameterContainerImagewith aCloudFormationCreateUpdateStackActionto deploy this template with the appropriateimageTag- An ECR resource policy issue described in (aws-codepipeline-actions): TagParameterContainerImage unusable cross-account #15070 blocks this approach to do this cross-account. - Single stack with multiple stages in a code-pipeline with instances of
EcsDeployActionthat takesaccountandregionas parameters and a `role' with appropriate cross-account and cross-region permissions - Something similar to this has been discussed in [aws-codepipeline-actions] support cross account/region ecs deployment #11199 but the issue has been closed with a pull request (fix(ecs): imported services don't have account & region set correctly #15944) without clarity on the final approach.
Is there any elegant way of doing this today? Probably @skinny85 who has been active in most of these issues and discussions can help us with this.
CDK CLI Version
1.132.0
Framework Version
No response
Node.js Version
No response
OS
No response
Language
Typescript
Language Version
No response
Other information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-codepipeline-actionsclosed-for-stalenessThis issue was automatically closed because it hadn't received any attention in a while.This issue was automatically closed because it hadn't received any attention in a while.guidanceQuestion that needs advice or information.Question that needs advice or information.response-requestedWaiting on additional info and feedback. Will move to "closing-soon" in 7 days.Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.