AWS IAM documentation change
Summary
Added PowerShell V5 example for adding role to instance profile
Security assessment
Documents secure instance profile management but no vulnerability addressed
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_AddRoleToInstanceProfile_section.md b/IAM/latest/UserGuide/iam_example_iam_AddRoleToInstanceProfile_section.md index a95b3c5f3..c391dfd0f 100644 --- a//IAM/latest/UserGuide/iam_example_iam_AddRoleToInstanceProfile_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_AddRoleToInstanceProfile_section.md @@ -52,0 +53,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This command adds the role named`S3Access` to an existing instance profile named `webserver`. To create the instance profile, use the `New-IAMInstanceProfile` command. After you create the instance profile and associate it with a role using this command, you can attach it to an EC2 instance. To do that, use the `New-EC2Instance` cmdlet with either the `InstanceProfile_Arn` or the `InstanceProfile-Name` parameter to launch the new instance.** + + + Add-IAMRoleToInstanceProfile -RoleName "S3Access" -InstanceProfileName "webserver" + + + * For API details, see [AddRoleToInstanceProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +