Creating a capacity provider for Amazon ECS
After the cluster creation completes, you can create a new capacity provider (Auto Scaling group) for the EC2 launch type.
Before you create the capacity provider, you need to create an Auto Scaling group. For more information, see Auto Scaling groups in the Amazon EC2 Auto Scaling User Guide.
To create a capacity provider for the cluster (Amazon ECS console)
Open the console at https://console.amazonaws.cn/ecs/v2
. -
In the navigation pane, choose Clusters.
-
On the Clusters page, choose the cluster.
-
On the Cluster :
name
page, choose Infrastructure, and then choose Create. -
On the Create capacity providers page, configure the following options.
-
Under Basic details, for Capacity provider name, enter a unique capacity provider name.
-
Under Auto Scaling group, for Use an existing Auto Scaling group, choose the Auto Scaling group.
-
(Optional) To configure a scaling policy, under Scaling policies, configure the following options.
-
To have Amazon ECS manage the scale-in and scale-out actions, select Turn on managed scaling.
-
To prevent EC2 instance with running Amazon ECS tasks from being terminated, select Turn on scaling protection.
-
For Set target capacity, enter the target value for the CloudWatch metric used in the Amazon ECS-managed target tracking scaling policy.
-
-
-
Choose Create.