AWS IAM documentation change
Summary
Added PowerShell V5 example for PutRolePolicy API call
Security assessment
Shows role policy management as part of security practices, but no specific vulnerability addressed
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_PutRolePolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_PutRolePolicy_section.md index 13b9ddc36..ee5ba1640 100644 --- a//IAM/latest/UserGuide/iam_example_iam_PutRolePolicy_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_PutRolePolicy_section.md @@ -202,0 +203,14 @@ PowerShell + + + + +**Tools for PowerShell V5** + + +**Example 1: This example creates an inline policy named`FedTesterRolePolicy` and embeds it in the IAM role `FedTesterRole`. If an inline policy with the same name already exists, then it is overwritten. The JSON policy content comes from the file `FedTesterPolicy.json`. Note that you must use the `-Raw` parameter to successfully process the content of the JSON file.** + + + Write-IAMRolePolicy -RoleName FedTesterRole -PolicyName FedTesterRolePolicy -PolicyDocument (Get-Content -Raw FedTesterPolicy.json) + + + * For API details, see [PutRolePolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_.