AWS Security ChangesHomeSearch

AWS IAM documentation change

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

File: IAM/latest/UserGuide/iam_example_iam_AttachRolePolicy_section.md

Summary

Added PowerShell V5 example for attaching SecurityAudit policy to roles

Security assessment

Documents security-related policy attachment but no vulnerability fix

Diff

diff --git a/IAM/latest/UserGuide/iam_example_iam_AttachRolePolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_AttachRolePolicy_section.md
index 9341d927b..2ea092cb1 100644
--- a//IAM/latest/UserGuide/iam_example_iam_AttachRolePolicy_section.md
+++ b//IAM/latest/UserGuide/iam_example_iam_AttachRolePolicy_section.md
@@ -630,0 +631,14 @@ PowerShell
+**Tools for PowerShell V5**
+    
+
+**Example 1: This example attaches the AWS managed policy named`SecurityAudit` to the IAM role `CoSecurityAuditors`. The users who assume that role are immediately affected by the permissions defined in the latest version of that policy.**
+    
+    
+    Register-IAMRolePolicy -RoleName CoSecurityAuditors -PolicyArn arn:aws:iam::aws:policy/SecurityAudit
+    
+
+  * For API details, see [AttachRolePolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. 
+
+
+
+