Useful SSM Commands

Get a list of online SSM Agents

$ aws ssm describe-instance-information --instance-information-filter-list key=PingStatus,valueSet=Online

$ aws --version
aws-cli/1.17.10 Python/3.8.1 Darwin/18.7.0 botocore/1.14.10

Get a list of SSM Agents by Instance IDs

$ aws ssm describe-instance-information --instance-information-filter-list key=InstanceIds,valueSet=<instance_id_1>[,<instance_id_N>]

$ aws --version
aws-cli/1.17.10 Python/3.8.1 Darwin/18.7.0 botocore/1.14.10