How to build docker container image and deploy it to AWS ECS ( Elastic Container Service ) ?
This video shows step-by-step how to build a docker image and then deploy docker container in AWS ECS service (with Fargate)
We will first build a docker image with python application (that will allow us to automatically remove background from pictures) and we will then push it to AWS ECR ( Elastic Container Registry ) then we will create all networking, load balancing and ECS services to run this containerized application in the cloud.
Not only this - we will do all of that using AWS CLI only!
All commands used in this video can be found here:
https://github.com/automation-avenue/...
== TIMESTAMPS ==
0:00 Deploy and run docker container in AWS ECS
1:45 What our application will look like
3:02 Create VPC (with AWS CLI)
3:58 Create name tag for our VPC
4:50 Create subnets in AWS using CLI
6:50 Create Internet Gateway with AWS CLI
7:20 Attach Internet Gateway to VPC
7:50 Create variable for route table
8:15 Add default route to our route table
9:25 Create Security Group
10:25 Create rules for our security group
11:05 Create / Build Load Balancer in AWS
13:35 Create Target Group for Load Balancer
14:30 Create Listener for Load Balancer
15:20 Build a docker image
18:10 Push docker image to Amazon ECR
18:30 Create ECR repository
19:15 Tag docker image before pushing to ECR
19:55 aws ecr get-login-password command
20:30 docker push command
21:40 Create IAM permissions
23:10 Create ECS Cluster
24:10 Create Cloudwatch log group
25:00 Create ECS Task Definition
28:30 envsubst command
30:10 Register Task Definition in ECS
30:35 Create ECS Service
32:10 Accessing our backgroud removal application in browser
33:05 Create DNS entry in Route53 for our application
🔥🔥 Learn Devops and Cloud on our platform: https://www.automation-avenue.com
📧 [email protected]
== 38 ==