dcloud ec2 instances cancel-commandStop 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 commandIdArguments
<id>Requiredstring
Also accepted as
--id. Constraints: /^i-[0-9a-f]{6,32}$/<commandId>Requiredstring
Also accepted as
--command-id. Constraints: /^cmd-[0-9a-f]{16}$/
Example
dcloud ec2 instances cancel-command id commandIdGenerated from the API description, the same one the API checks requests against and the CLI is built from.