AWS Security ChangesHomeSearch

AWS IAM documentation change

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

File: IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md

Summary

Added PowerShell V5 example for creating IAM policies

Security assessment

Demonstrates policy creation which is fundamental to IAM security but doesn't resolve any specific vulnerability

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md
index dc8ccfc1e..efce7a78e 100644
--- a//IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_CreatePolicy_section.md
@@ -835,0 +836,28 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example creates a new IAM policy in the current AWS account named`MySamplePolicy` The file `MySamplePolicy.json` provides the policy content. Note that you must use the `-Raw` switch parameter to successfully process the JSON policy file.**
+    
+    
+    New-IAMPolicy -PolicyName MySamplePolicy -PolicyDocument (Get-Content -Raw MySamplePolicy.json)
+    
+
+**Output:**
+    
+    
+    Arn              : arn:aws:iam::123456789012:policy/MySamplePolicy
+    AttachmentCount  : 0
+    CreateDate       : 4/14/2015 2:45:59 PM
+    DefaultVersionId : v1
+    Description      : 
+    IsAttachable     : True
+    Path             : /
+    PolicyId         : LD4KP6HVFE7WGEXAMPLE1
+    PolicyName       : MySamplePolicy
+    UpdateDate       : 4/14/2015 2:45:59 PM
+
+  * For API details, see [CreatePolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+