Member-only story
AWS CodePipeline for Amazon ECS, Part 1: A Rolling Updates Deployment Type
In this tutorial, I would like to explain to you how to create an AWS CodePipeline for ECS with a rolling update deployment type.
At the beginning of this tutorial, we will create the ECS cluster and deploy an app on it. Then we will create the pipeline to build and deploy the app to this cluster. The ECS cluster will be simple, I won’t focus match on security and high availability. I have a separate tutorial where I explain how to create an ECS cluster from scratch step by step. So if you would like to learn more, please check here.
The diagram below explains how the AWS CodePipeline integrates with the AWS ECS with rolling updates deployment type.

1. Create a load balancer
Go to EC2 -> Load Balancing -> Load Balancers -> Create Load Balancer. Select Application Load Balancer and press Create. Give it a name, and select default VPC and at least 2 subnets, and press Next.

Then select Create a new security group and give it a name press Next.