Amazon Elastic Container Service
Developer Guide (API Version 2014-11-13)

ecs-cli configure default

Sets the cluster configuration to be read from by default.

Note

Unlike the AWS CLI, the Amazon ECS CLI does not expect or require that the default configuration be named default. The name of a configuration does not determine whether it is default.

Important

Some features described may only be available with the latest version of the Amazon ECS CLI. To obtain the latest version, see Installing the Amazon ECS CLI.

Syntax

ecs-cli configure default --config-name config_name [--help]

Options

Name Description

--config-name config_name

Specifies the name of the cluster configuration to use by default in subsequent commands.

Type: String

Required: Yes

--help, -h

Shows the help text for the specified command.

Required: No

Examples

Example

This example configures the Amazon ECS CLI to set the ecs-cli-demo cluster configuration as the default.

ecs-cli configure default --config-name ecs-cli-demo

There is no output if the command is successful.

On this page: