AWS code-library documentation change
Summary
Added PowerShell V5 example for listing inline role policies
Security assessment
Documents inspection of inline role policies (security-related configuration), but no vulnerability remediation. Improves visibility into role permissions.
Diff
diff --git a/code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md b/code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md index 917be407e..9c117c85f 100644 --- a//code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md +++ b//code-library/latest/ug/iam_example_iam_ListRolePolicies_section.md @@ -246,0 +247,19 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example returns the list of names of inline policies that are embedded in the IAM role`lamda_exec_role`. To see the details of an inline policy, use the command `Get-IAMRolePolicy`.** + + + Get-IAMRolePolicyList -RoleName lambda_exec_role + + +**Output:** + + + oneClick_lambda_exec_role_policy + + * For API details, see [ListRolePolicies](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +