Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(codepipeline): add example of an ECS Deploy Action #18059

Closed
18 changes: 18 additions & 0 deletions packages/@aws-cdk/aws-codepipeline-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,24 @@ Here's an example:

[example ECS pipeline for an application in a separate source code repository](test/integ.pipeline-ecs-separate-source.lit.ts)

#### Deploying to ECS across account or regions with an existing service
tobytipton marked this conversation as resolved.
Show resolved Hide resolved

CodePipeline can deploy to an existing ECS service across accounts and/or regions this requires importing of the ECS service in the
account and region it is defined in to get the ARN for the service which then can be used to import the ECS service by the pipeline stack
to determine the correct region for the ECS action.
Here's an example:
tobytipton marked this conversation as resolved.
Show resolved Hide resolved

[example ECS pipeline existing ECS service cross account and region](test/integ.pipeline-ecs-import-cross-account.lit.ts)
tobytipton marked this conversation as resolved.
Show resolved Hide resolved

#### Deploying to ECS across account or regions with an new service
tobytipton marked this conversation as resolved.
Show resolved Hide resolved

CodePipeline can deploy to an new ECS service across accounts and/or regions this requires creating of the ECS service in the
account and region it is defined in and using stackFormat to get the ARN for the service which then can be used to import the
ECS service by the pipeline stack to determine the correct region for the ECS action.
Here's an example:
tobytipton marked this conversation as resolved.
Show resolved Hide resolved

[example ECS pipeline new ECS service cross account and region](test/integ.pipeline-ecs-create-cross-account.lit.ts)
tobytipton marked this conversation as resolved.
Show resolved Hide resolved

### AWS S3 Deployment

To use an S3 Bucket as a deployment target in CodePipeline:
Expand Down
Loading