Ssm

1
2
3
aws ssm describe-instance-information --output text --query "InstanceInformationList[*]"

aws ssm send-command --instance-ids $instance_ids  --document-name "AWS-RunShellScript" --comment "Some Comment" --parameters commands=/usr/local/bin/somecommand --output text

Get command status

1
aws ssm list-commands  --command-id "command_ID"

Get command details aws ssm list-command-invocations --command-id $command_id --details --region eu-central-1

Get command information with response data for a specific instance aws ssm list-command-invocations --instance-id $instance_id --command-id $command_id --details