AWS Security ChangesHomeSearch

AWS code-library documentation change

Service: code-library · 2025-06-28 · Documentation low

File: code-library/latest/ug/iam_example_iam_ListInstanceProfiles_section.md

Summary

Added PowerShell V5 example for listing instance profiles with sample output and API reference

Security assessment

The change adds a routine example of listing IAM instance profiles. While IAM is security-related, this is a standard operational example without addressing specific vulnerabilities or security features.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_ListInstanceProfiles_section.md b/code-library/latest/ug/iam_example_iam_ListInstanceProfiles_section.md
index 808e20fe0..8101aa9af 100644
--- a//code-library/latest/ug/iam_example_iam_ListInstanceProfiles_section.md
+++ b//code-library/latest/ug/iam_example_iam_ListInstanceProfiles_section.md
@@ -122,0 +123,24 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example returns a collection of the instance profiles defined in the current AWS account.**
+    
+    
+    Get-IAMInstanceProfileList
+    
+
+**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 [ListInstanceProfiles](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+