AWS Security ChangesHomeSearch

AWS code-library documentation change

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

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

Summary

Added PowerShell V5 example for retrieving EC2 instance profile details

Security assessment

This demonstrates normal operational use of instance profiles without addressing security weaknesses or introducing new security controls. Instance profiles are security mechanisms, but the documentation change itself doesn't enhance security guidance.

Diff

diff --git a/code-library/latest/ug/iam_example_iam_GetInstanceProfile_section.md b/code-library/latest/ug/iam_example_iam_GetInstanceProfile_section.md
index cddd7180e..4fc479610 100644
--- a//code-library/latest/ug/iam_example_iam_GetInstanceProfile_section.md
+++ b//code-library/latest/ug/iam_example_iam_GetInstanceProfile_section.md
@@ -82,0 +83,24 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example returns details of the instance profile named`ec2instancerole` that is defined in the current AWS account.**
+    
+    
+    Get-IAMInstanceProfile -InstanceProfileName 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 [GetInstanceProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+