1 回答
- 最新
- 投票最多
- 评论最多
0
Hi,
This example command will get list of managed instances.
aws ssm describe-instance-information --filters Key=ResourceType,Values=ManagedInstance --query "InstanceInformationList[].InstanceId" --output text
In addition, you can also filter by IAM role like this:
aws ssm describe-instance-information --filters Key=ResourceType,Values=ManagedInstance Key=IamRole,Values=MyExampleRole --query "InstanceInformationList[].InstanceId" --output text
Hope this helps.
Thanks,
Mani
已回答 5 年前
相关内容
- AWS 官方已更新 2 年前