From the course: Complete Guide to AWS Software Deployment

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Run Docker apps with an ECS service

Run Docker apps with an ECS service

- [Instructor] All right, in this video we're going to horizontally scale our Docker app by placing the task in an ECS service and accessing it through a load balancer. In order to do that, we're first going to have to start in the IAM console. So click or search for that, then go to Roles and click Create role. Keep AWS service selected here, and down below, choose CodeDeploy. See, we're going to be setting up a blue/green deployment, which is a type of deployment that will set up entirely new infrastructure with the new app revision working before swapping it over, giving us truly zero downtime deployments. It'll be very nice. So our Use case is CodeDeploy, and choose the final option here, CodeDeploy - ECS. Click next, all right, that pre-selects a policy for us called AWSCodeDeployRoleForECS, which is exactly what we want. So click next. And we'll call our role CodeDeploy ECS service role. Very descriptive name as usual. Scroll all the way down and click Create role. All right…

Contents