dcloud ec2 instances cancel-command

Stop a running command (TERM, then KILL 5 s later): status cancelled

IAM ec2:RunCommandChanges stateAsks before it deletes (-y skips)

A command you started needs `ec2:RunCommand`; someone else’s needs `ec2:DescribeCommands` as well.

Synopsis

dcloud ec2 instances cancel-command id commandId

Arguments

  • <id>Required

    string

    Also accepted as --id. Constraints: /^i-[0-9a-f]{6,32}$/

  • <commandId>Required

    string

    Also accepted as --command-id. Constraints: /^cmd-[0-9a-f]{16}$/

Example

dcloud ec2 instances cancel-command id commandId

Generated from the API description, the same one the API checks requests against and the CLI is built from.