Creating a cluster for the Fargate launch type using the new console - Amazon Elastic Container Service

Creating a cluster for the Fargate launch type using the new console

You can create an Amazon ECS cluster using the new AWS Management Console, as described in this topic. Before you begin, be sure that you've completed the steps in Set up to use Amazon ECS. The new console provides a simple way to create the resources that are needed by an Amazon ECS cluster by creating a AWS CloudFormation stack.

To make the cluster creation process as easy as possible, the console has default selections for many choices which we describe below. There are also help panels available for most of the sections in the console which provide further context.

By default, we create an Amazon ECS cluster for Fargate launch type with the following properties:

  • Uses Fargate and Fargate Spot capacity providers.

  • Launches tasks and services in all the default subnets in the default VPC for your selected Region.

  • Does not use Container Insights.

  • Has three tags configured for AWS CloudFormation.

You can modify the following default options:

  • Change the subnets where tasks and services launch into by default.

  • Turn on Container Insights.

    CloudWatch Container Insights collects, aggregates, and summarizes metrics and logs from your containerized applications and microservices. Container Insights also provides diagnostic information, such as container restart failures, that you use to isolate issues and resolve them quickly. For more information, see Amazon ECS CloudWatch Container Insights.

  • Add tags to help you identify your clusters.

To create a new cluster (New Amazon ECS console)

Before you begin, be sure that you create an IAM user, and then assign the appropriate IAM permissions. For more information, see Create an IAM user and Cluster examples.

  1. Open the new console at https://console.aws.amazon.com/ecs/v2.

  2. From the navigation bar, select the Region to use.

  3. In the navigation pane, choose Clusters.

  4. On the Clusters page, choose Create cluster.

  5. Under Cluster configuration, for Cluster name, enter a unique name.

    The name can contain up to 255 letters (uppercase and lowercase), numbers, and hyphens.

  6. (Optional) To change the VPC and subnets where your tasks and services launch, under Networking, perform any of the following operations:

    • To remove a subnet, under Subnets, choose X for each subnet that you want to remove.

    • To change to a VPC other than the default VPC, under VPC, choose an existing VPC, and then under Subnets, select each subnet.

  7. (Optional) To turn on Container Insights, expand Monitoring, and then turn on Use Container Insights.

  8. (Optional) To manage the cluster tags, expand Tags, and then perform one of the following operations:

    [Add a tag] Choose Add tag and do the following:

    • For Key, enter the key name.

    • For Value, enter the key value.

    [Remove a tag] Choose Remove to the right of the tag’s Key and Value.

  9. Choose Create.