| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Lists all the instance profiles associated with a given role. You can paginate the results using the
MaxItems and Marker options.
For more information about instance profiles, see About Instance Profiles in Using AWS Identity and Access Management. Working with roles is described in Working with Roles.
iam-instanceprofilelistforroles
-r
ROLENAME
| Name | Description | Required |
|---|---|---|
|
|
The role that you want to list the associated instance profiles for. Type: String |
Yes |
|
|
Use this only when paginating results to indicate the maximum number of items you want
in the response. If there are additional items beyond the
maximum you specify, the Type: String Default: None |
No |
|
|
Use this only when paginating results, and only in a subsequent request after you've received a response where the results are truncated. Set it to the value of the Marker element in the response you just received. Type: String Default: None |
No |
The output lists the Amazon Resource Names (ARNs) for the instance profiles that are associated with the specified role. For more information about ARNs, go to ARNs in Using AWS Identity and Access Management.
The following example lists all the instance profiles associated with the role myrole.
PROMPT> iam-instanceprofilelistforrole -r myrole arn:aws:iam::123456789012:instance-profile/division_abc/subdivision_xyz/myinstanceprofile IsTruncated: false