Configuring ECS CLI
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 |
| Name of an existing ECS cluster or a new cluster to create |
|
| AWS region |
|
| Launch type |
|
| Configuration name |
|
- Run the following command in PowerShell to configure an ECS cluster:
ecs-cli configure --cluster hello-world --region us-east-1 --default-
launch-type FARGATE --config-name hello-world
- Create a directory,
C:\PowerShell
, for PowerShell and run the preceding command from the directory...