Amazon Elastic Container Service (AWS ECS)

Deploying a new application from scratch

Demo Creating new cluster

In this lesson, you will learn how to create a new Amazon ECS cluster using the AWS Management Console. Follow the steps below to configure your cluster with Fargate and avoid launching EC2 instances.

Step 1: Choose a Cluster Template

Click on the Create Cluster button. You will see three template options:

  1. Networking only – Ideal for using Fargate.
  2. EC2 Linux + Networking – Use this if you plan to run EC2 instances with Linux.
  3. EC2 Windows + Networking – Use this if you plan to run EC2 instances with Windows.

Since the goal is to use Fargate, select the Networking only option. Then, provide a name for your cluster, such as cluster1. You also have the option to customize your VPC configuration by modifying the default CIDR block and subnets. If no customization is required, leave these settings as they are. When you click Create, the system will automatically provision a VPC with your specified CIDR block and two subnets.

The image shows an AWS interface for creating a cluster, offering three template options: "Networking only," "EC2 Linux + Networking," and "EC2 Windows + Networking." Each option lists the resources to be created, such as clusters, VPCs, and subnets.

Step 2: Configure Networking Settings

After selecting your cluster template, adjust any additional networking settings as needed. This includes configuring the VPC, CIDR block, and subnets. You may also add tags or enable CloudWatch Container Insights. Once you have reviewed the settings, click Create to continue.

The image shows an AWS interface for creating a cluster, with options to configure networking settings such as VPC, CIDR block, and subnets. There are also fields for adding tags and enabling CloudWatch Container Insights.

Note

After configuring your networking settings, ensure that the VPC and subnet settings meet your organizational requirements.

Step 3: View Cluster Details

Once the cluster is created, click View Cluster to access its details. This action will take you to the cluster details page where you can verify the successful creation and review the configuration details.

The image shows an AWS console screen displaying the launch status of an ECS cluster, with details about the VPC, subnets, and other cluster resources.

On the details page, you will see that cluster1 is now active. The dashboard provides an overview of the cluster status, task counts, and services. Although the cluster is active, note that there are no registered container instances or running tasks yet.

The image shows an AWS ECS (Elastic Container Service) dashboard for a cluster named "cluster1," displaying details like cluster status, task counts, and service information. The cluster is active, but there are no registered container instances or running tasks.

Warning

Ensure you have reviewed all configuration parameters and networking settings before finalizing your cluster creation to avoid configuration issues later.

Watch Video

Watch video content

Previous
Demo Deleting cluster