AWS Elastic Container Services

AWS Elastic Container Services

AWS ECS

No alt text provided for this image

Terminology and components

  1. There are three layers in Amazon ECS:

  • Provisioning — The tools that you can use to interface with the scheduler to deploy and manage your applications and containers
  • Capacity — The infrastructure where your containers run
  • Controller — Deploy and manage your applications that run on the containers


About AWS Fargate, ALB and deployment

No alt text provided for this image

What is AWS Fargate?

AWS Fargate is a technology that you can use with Amazon ECS to run?containers?without having to manage servers or clusters of Amazon EC2 instances. With Fargate, you no longer have to provision, configure, or scale clusters of virtual machines to run containers. This removes the need to choose server types, decide when to scale your clusters, or optimize cluster packing.

When you run your Amazon ECS tasks and services with the Fargate launch type or a Fargate capacity provider, you package your application in containers, specify the Operating System, CPU and memory requirements, define networking and IAM policies, and launch the application. Each Fargate task has its own isolation boundary and does not share the underlying kernel, CPU resources, memory resources, or elastic network interface with another task.


Step 1:- Create ECS Cluster

  • Log in to the AWS Management Console and open the ECS service.
  • Click on the Cluster Button and create a Cluster.

No alt text provided for this image


  • Choose the cluster template according to your needs.
  • Choose the instance type and the desired number of instances.

No alt text provided for this image

  • Review the settings, and click on Create.

Step 2:- Create a task definition

  • Click on task definition and then click on Create a new task definition button.
  • Choose the task definition type EC2 or Fargate.
  • Configure the task definition by a task_name, container definitions, networking, and other settings. In the container definition, specify the image, port mappings, environment variables, and other container-specific configurations.
  • Review and Click on Create Button.

Step 3:- Create a Service and Launch Containers.

  • In the ECS service console, click on “Clusters” in the left sidebar and select your cluster.
  • Click on Create button to create a service.
  • Configure your service by providing a service name, selecting the task definition you created in the previous step, and setting the desired number of tasks.
  • Customize other service settings like load balancing, autoscaling, and scheduling if required
  • Review and Click on Create Service.

要查看或添加评论,请登录

Sparsh Kumar的更多文章

社区洞察

其他会员也浏览了