Setting up the infrastructure to host the application
In this recipe, we will be setting up scalable and fault tolerant Infrastructure to deploy the containerized application.
Getting ready
To set up the infrastructure according to the diagram in the previous recipe, we have to perform the following operations:
- Create an ECS cluster with a minimum of two instances.
- Create a classic load balancer and register the ECS instance into that ELB.
- Also, edit ECS Auto Scaling and update the newly created load balancer in it.
- Create an Amazon ECR repository, which will store the containerized application image.
How to do it...
To set up the infrastructure, a detailed explanation and implementation is provided here:
Creating an ECS cluster
- To create an ECS cluster, go to the AWS console and click on the EC2 container engine in the
Compute
section. After that, click onCreate Cluster
and fill or select the following information.- Cluster name: ECS-ECSAPP
- Provisioning model: On-demand instance
- Instance type: t2.small...