CodePipeline Fargate
Set up a CodePipeline for a ECS Fargate rolling deploy
- Make sure you set up a buildspec in the git repository first (see setup buildspec)
- Go to CodePipeline in AWS.
- Click on
Create pipeline
. - Fill in a pipeline name (e.g.
test-mc-embed-api
) - Choose existing service role and select
eu-west-1-codepipeline
. - Click next.
- Select
GitHub
as source provider. - Click
Connect to GitHub
and authorize access. - In repository choose the git repo (e.g.
my-channels/mychannels-elixir-vaas
) - Choose a branch which is used to deploy (e.g.
test-embed-api
) - Click next.
- Select
AWS CodeBuild
as build provider. - For project name click
Create project
, this will open a new window. - Fill in a project name (e.g.
test-mc-embed-api
) - Choose
Managed image
as environment image. - Select
Ubuntu
as operating system. - Select
Standard
as runtime. - Select
aws/codebuild/standard:1.0
as image. - Enable privileged checkbox.
- Choose
Existing service role
as service role. - Select
mc-codebuild-ecr-role
as role ARN. - Open additional configuration.
- For environment variables, fill in values used by buildspec created in step 1 (e.g.
CONTAINER_NAME=test-mc-embed-api
and TAG_TARGET=test
) - Choose
Use a buildspec file
as build specifications. - Fill in buildspec path (e.g.
apps/vaas_embed_api/buildspec.yml
) - Click continue to CodePipeline, you're now back in the old window.
- Click next.
- Select
Amazon ECS
as deploy provider. - Choose cluster name (e.g.
test
) - Choose service name (e.g.
test-mc-fox-sports
) - Click next.
- Review everything and click create pipeline.
Last Updated: 10/1/2019, 10:07:22 AM