dcloud ec2 instances get-command

A command’s status, exit code and output

IAM ec2:DescribeCommandsRead

`ec2:RunCommand` on the instance is enough for a command you started; anyone else’s needs `ec2:DescribeCommands`, and an explicit Deny of `ec2:DescribeCommands` also stops reads of your own. `lost`: the connection to the machine broke before the command ended (its outcome on the machine is unknown). To follow output across reads, print from your last byte offset: the tail starts at `stdoutBytes` minus its own UTF-8 length. Output is cleared 7 days after the command ended (`outputPurged`).

Synopsis

dcloud ec2 instances get-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 get-command id commandId

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