Elastic Container Service (ECS)

Amazon Elastic Container Service (Amazon ECS) is a highly scalable and high-performance container orchestration service. It makes easy to run, stop, and manage Docker containers on a cluster.

ECS Cluster :

An Amazon ECS cluster is a logical grouping of tasks or services. When you first use Amazon ECS, a default cluster is created for you, but you can create multiple clusters in an account to keep your resources separate. 

When you create a cluster from the AWS console, the following resources will be created for you along with the cluster.

  • VPC
  • Subnets
  • Autoscaling group
  • IAM Role

Task Definition :

A task definition is required to run Docker containers in Amazon ECS. Some of the parameters you can specify in a task definition include:

  • image
  • CPU and memory
  • networking mode
  • logging configuration
  • command the container should run when it is started
  • data volumes
  • IAM role that your tasks should use

Load Balancing :

Amazon ECS service can optionally be configured to use Elastic Load Balancing to distribute traffic evenly across the tasks in your service. Application Load Balancers are used to route HTTP/HTTPS (or Layer 7) traffic.

Configurations to be created :

1. VPC
2. Subnets and Security groups
3. Launch Configuration
4. Autoscaling
5. IAM Role
6. ECS Cluster
7. ECS Service
8. Task Definition
9. Load Balancer