CmdID

CmdID / aws / aws ssm

aws ssm cancel-command

Attempts to cancel the command specified by the Command ID. AWS CLI reference

2 examples 2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

Example 1: To cancel a command for all instances

The following cancel-command example attempts to cancel the specified command that is already running for all instances.

aws ssm cancel-command --command-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"Identify
--command-idThe ID of the command you want to cancel.

This command produces no output.

Example 2: To cancel a command for specific instances

The following cancel-command example attempts to cancel a command for the specified instance only.

aws ssm cancel-command --command-id "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111" --instance-ids "i-02573cafcfEXAMPLE"Identify
--command-idThe ID of the command you want to cancel.
--instance-ids(Optional) A list of managed node IDs on which you want to cancel the command.

This command produces no output.

For more information, see Canceling a command in the AWS Systems Manager User Guide.

Options

2 in the AWS CLI reference
--command-idThe ID of the command you want to cancel.
--instance-ids(Optional) A list of managed node IDs on which you want to cancel the command.