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년 전