How To Deploy Application On ECS Cluster : Part 1

Posted By :Gaurav Pal |21st June 2022

Creating ECS cluster

1. Log into the management console and find the ECS services.


2. Click on the Create cluster to start creating the cluster





How to make an ECS cluster on AWS?

For running containerized apps on AWS, use the controlled, highly available, and scalable ECS (Elastic container service). To run one or more processes in service, a task specification is created in ECS and used to define the containers. A service in ECS is a setup that can run and manage numerous tasks in an ECS cluster at once.


To communicate with your containerized application running on Amazon ECS, there are straightforward APIs available. Using these APIs, you can start, run, stop, and launch your containerized application. Additionally, you may plan where to put the containers that are running the application on the target node based on the resources that it needs.


Following are some of the terminologies used while working with the ECS cluster:


11 seconds of 30 secondsVolume 0%



  • Container and images
  • Task definitions
  • Task and scheduling
  • Clusters
  • Container agent


This article will show you how to use the AWS administration panel to set up an ECS cluster on the platform.

Creating ECS cluster

First, log into the management console and go to the ECS services.


From the left side panel on the console, click on the Clusters button.


Now click on the Create cluster to start creating the cluster.



      First, it will ask for the cluster template. There are three different templates available for deploying an ECS cluster.

  • Networking only
  • EC2 Linux + Networking
  • EC2 Windows + Networking

Using AWS Fargate, the Networking only template creates clusters. AWS Fargate is a new AWS technology that helps you deploy ECS clusters. ECS clusters can be installed using the serverless service AWS Fargate. You are not required to manage the cluster's nodes. AWS manages the nodes and you only provide task definitions for the service. For this template, you create only an ECS cluster, and VPCs and subnets are optional for this. The nodes running a Linux AMI are part of the ECS cluster that is created using the EC2 Linux + Networking template. To run an ECS cluster using the EC2 Linux + Networking template, you need to create an autoscaling group with clusters, VPCs, subnets, and Linux AMIs.Autoscaling groups are used to manage the nodes in the cluster. The EC2 Windows + Networking template establishes a Windows AMI-based ECS cluster. Using Windows AMIs, you construct the Cluster, subnets, VPC, and auto-scaling group. The auto-scaling group manages and scales the windows instances.


4.  After selecting an option, click the "Next Step" button at the bottom right corner of the page. The ECS installer will ask you to provide the configuration information for your cluster. The name is the unique identifier for the ECS cluster, and each ECS cluster in the same region must have a unique name. For cluster networking, you can create the cluster within a VPC to isolate the ECS cluster. For this demo, we will not run the ECS cluster inside the VPC. Applications built with containers are monitored and troubleshot using Cloudwatch container insights. The container metrics collector gathers data on container performance, memory usage, disk space, and other events, to provide a comprehensive view of the container environment. This demo does not use CloudWatch Container Insight.


When you click on the Create button to create the ECS cluster, it will first create an IAM service-linked role for the ECS and then create the cluster.

About Author

Gaurav Pal

Gaurav Pal is working as a DevOps Engineer. He is skilled in Linux and Github. He is a detail-oriented person with good problem-solving skills.

Request For Proposal

[contact-form-7 404 "Not Found"]

Ready to innovate ? Let's get in touch

Chat With Us