HEX
Server: LiteSpeed
System: Linux ip-172-31-76-142.ec2.internal 4.14.158-129.185.amzn2.x86_64 #1 SMP Tue Dec 24 03:15:32 UTC 2019 x86_64
User: 69b4844ae61d4e92bf26ad98af552775 (1065)
PHP: 7.2.27
Disabled: exec,passthru,shell_exec,system,eval
Upload Files
File: //lib/python2.7/site-packages/awscli/examples/ssm/get-command-invocation.rst
**To display the details of a command invocation**

This example lists all the invocations of a command on an instance.

Command::

  aws ssm get-command-invocation --command-id "ef7fdfd8-9b57-4151-a15c-db9a12345678" --instance-id "i-1234567890abcdef0"

Output::

  {
    "CommandId": "ef7fdfd8-9b57-4151-a15c-db9a12345678",
    "InstanceId": "i-1234567890abcdef0",
    "Comment": "",
    "DocumentName": "AWS-RunPowerShellScript",
    "DocumentVersion": "1",
    "PluginName": "aws:runPowerShellScript",
    "ResponseCode": 0,
    "ExecutionStartDateTime": "2019-02-14T19:26:26.439Z",
    "ExecutionElapsedTime": "PT0.541S",
    "ExecutionEndDateTime": "2019-02-14T19:26:26.439Z",
    "Status": "Success",
    "StatusDetails": "Success",
    "StandardOutputContent": "HelloWorld\r\n",
    "StandardOutputUrl": "",
	"StandardErrorContent": "",
	"StandardErrorUrl": "",
	"CloudWatchOutputConfig": {
        "CloudWatchLogGroupName": "",
        "CloudWatchOutputEnabled": false
  }