Configuring the ECS CLI involves the following two configurations:
- Configure an ECS cluster with the Fargate launch type
- Configure an ECS CLI profile
Next, we shall discuss each of these configurations. The syntax to configure a cluster is as follows:
ecs-cli configure --cluster cluster_name --default-launch-type launch_type --region region_name --config-name configuration_name
The different command parameters in the ecs-cli configure command are discussed in this table:
Command parameter |
Description |
Value to set |
--cluster |
Name of an existing ECS cluster or a new cluster to create |
hello-world |
--region |
AWS region |
us-east-1 |
--default-launch-type |
Launch type |
FARGATE |
--config-name |