AWS Security ChangesHomeSearch

AWS IAM documentation change

Service: IAM · 2025-06-25 · Documentation low

File: IAM/latest/UserGuide/iam_example_iam_ListInstanceProfilesForRole_section.md

Summary

Added PowerShell V5 example for listing instance profiles associated with a role

Security assessment

Documents EC2 instance role management (security feature) without evidence of vulnerability remediation

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_ListInstanceProfilesForRole_section.md b/IAM/latest/UserGuide/iam_example_iam_ListInstanceProfilesForRole_section.md
index f2cd61721..86d9e2078 100644
--- a//IAM/latest/UserGuide/iam_example_iam_ListInstanceProfilesForRole_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_ListInstanceProfilesForRole_section.md
@@ -82,0 +83,24 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example returns details of the instance profile associated with the role`ec2instancerole`.**
+    
+    
+    Get-IAMInstanceProfileForRole -RoleName ec2instancerole
+    
+
+**Output:**
+    
+    
+          Arn                 : arn:aws:iam::123456789012:instance-profile/ec2instancerole
+          CreateDate          : 2/17/2015 2:49:04 PM
+          InstanceProfileId   : HH36PTZQJUR32EXAMPLE1
+          InstanceProfileName : ec2instancerole
+          Path                : /
+          Roles               : {ec2instancerole}
+
+  * For API details, see [ListInstanceProfilesForRole](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+