AWS IAM documentation change
Summary
Added PowerShell V5 example for PutGroupPolicy API call
Security assessment
Shows policy management which relates to security controls, but no vulnerability addressed
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_PutGroupPolicy_section.md b/IAM/latest/UserGuide/iam_example_iam_PutGroupPolicy_section.md index 1651588dd..82e176322 100644 --- a//IAM/latest/UserGuide/iam_example_iam_PutGroupPolicy_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_PutGroupPolicy_section.md @@ -53,0 +54,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example creates an inline policy named`AppTesterPolicy` and embeds it in the IAM group `AppTesters`. If an inline policy with the same name already exists, then it is overwritten. The JSON policy content comes the file `apptesterpolicy.json`. Note that you must use the `-Raw` parameter to successfully process the content of the JSON file.** + + + Write-IAMGroupPolicy -GroupName AppTesters -PolicyName AppTesterPolicy -PolicyDocument (Get-Content -Raw apptesterpolicy.json) + + + * For API details, see [PutGroupPolicy](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +