This lab walks you through the steps to create an ECS Cluster with t2.micro instance type as container instance.
You will practice using Amazon Elastic Container Registry's repository to push a custom docker image created using Dockerfile. You will also learn how to push the image to the ECR repository.
Duration: 60 minutes
AWS Region: US East (N. Virginia) us-east-1
Launching Lab Environment
Create a Security Group for the ECS Cluster
Create a Key Pair for the EC2 instances, inside the ECS Cluster
Launching an ECS Cluster
Navigate to the container instance, copy the public IP required for SSH.
SSH into the underlying EC2 instance.
Create a Dockerfile and build a docker image.
Create a repository in ECR and run the push commands.
Validation of the lab