ecs-cli compose service stop
停止属于使用复合项目创建的服务的正在运行的任务。此命令将服务的预期数量更新为 0
。
The --timeout
option specifies the timeout value, in minutes (decimals
supported), to wait for the running task count to change. If the running task count
has
not changed for the specified period of time, then the Amazon ECS CLI times out and
returns an
error. Setting the timeout to 0
causes the command to return without
checking for success. The default timeout value is 5
(minutes).
语法
ecs-cli compose service stop [--timeout value
]
[--help]
选项
名称 | 描述 |
---|---|
|
Specifies the timeout value, in minutes (decimals
supported), to wait for the running task count to change. If the running task count
has
not changed for the specified period of time, then the Amazon ECS CLI times out and
returns an
error. Setting the timeout to Default value: Required: No |
|
Specifies the AWS Region to use. Defaults to the cluster configured using the configure command. Type: String Required: No |
|
Specifies the name of the Amazon ECS cluster configuration to use. Defaults to the cluster configuration set as the default. Type: String Required: No |
|
Specifies the name of the Amazon ECS profile configuration to use. Defaults to the profile configured using the configure profile command. Type: String Required: No |
|
Specifies the AWS profile to use. Enables you to use the AWS credentials from an existing
named profile in Type: String Required: No |
|
Specifies the Amazon ECS cluster name to use. Defaults to the cluster configured using the configure command. Type: String Required: No |
|
Shows the help text for the specified command. Required: No |