AWS code-library documentation change
Summary
Added PowerShell V5 example for attaching SecurityAudit policy to IAM role
Security assessment
Shows security-related policy attachment but does not indicate remediation of a security flaw.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md b/code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md index c4fb446b5..0295e8127 100644 --- a//code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md +++ b//code-library/latest/ug/iam_example_iam_AttachRolePolicy_section.md @@ -632,0 +633,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)_. + + + +