All Templates|🔄 CI/CD Pipelinepro~$10–40/mo
🔄

CI/CD Pipeline

CodeCommit → CodeBuild → CodePipeline → CodeDeploy to ECS.

What you can build with this

Automate your deployment workflow. Push code to your repository and the pipeline automatically compiles it, runs tests, builds a Docker image, and deploys it to your ECS service — without any manual steps. Supports blue/green deployments for zero-downtime releases.

Deployment timing

After you run the deploy command, resources come online at different times. Check the validation steps in order.

ResourceReady in
Pipeline infrastructure2–3 min (stack deploy)
Source stage (git push detected)Within 30 seconds of push
Build stage (CodeBuild)3–8 min depending on image size
Deploy stage (ECS update)3–5 min after build
ECS rolling replacement complete2–4 min after deploy starts

CloudFormation parameters

These are the values you will fill in when deploying the exported template. Changing these does not break the template — that is the point.

ParameterWhat to provideExample
RepoNameCodeCommit repository name to createmy-app-repo
PipelineNameName for the CodePipelinemy-app-pipeline
EcsClusterName of your existing ECS clustermy-cluster
EcsServiceName of your existing ECS servicemy-service