AWS IAM documentation change
Summary
Added PowerShell V5 example for listing attached role policies
Security assessment
Enhances documentation about role policy management (security feature) without addressing specific vulnerabilities
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_ListAttachedRolePolicies_section.md b/IAM/latest/UserGuide/iam_example_iam_ListAttachedRolePolicies_section.md index 0456b006b..dc727ef86 100644 --- a//IAM/latest/UserGuide/iam_example_iam_ListAttachedRolePolicies_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_ListAttachedRolePolicies_section.md @@ -249,0 +250,21 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This command returns the names and ARNs of the managed policies attached to the IAM role named`SecurityAuditRole` in the AWS account. To see the list of inline policies that are embedded in the role, use the `Get-IAMRolePolicyList` command.** + + + Get-IAMAttachedRolePolicyList -RoleName "SecurityAuditRole" + + +**Output:** + + + PolicyArn PolicyName + --------- ---------- + arn:aws:iam::aws:policy/SecurityAudit SecurityAudit + + * For API details, see [ListAttachedRolePolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +