AWS IAM documentation change
Summary
Added PowerShell V5 example for detaching a role from an instance profile
Security assessment
Role-instance profile management is a security best practice, but the example does not resolve a specific vulnerability.
Diff
diff --git a/IAM/latest/UserGuide/iam_example_iam_RemoveRoleFromInstanceProfile_section.md b/IAM/latest/UserGuide/iam_example_iam_RemoveRoleFromInstanceProfile_section.md index 9bd919324..3599d00e7 100644 --- a//IAM/latest/UserGuide/iam_example_iam_RemoveRoleFromInstanceProfile_section.md +++ b//IAM/latest/UserGuide/iam_example_iam_RemoveRoleFromInstanceProfile_section.md @@ -48,0 +49,14 @@ PowerShell +**Tools for PowerShell V5** + + +**Example 1: This example deletes the role named`MyNewRole` from the EC2 instance profile named `MyNewRole`. An instance profile that is created in the IAM console always has the same name as the role, as in this example. If you create them in the API or CLI, then they can have different names.** + + + Remove-IAMRoleFromInstanceProfile -InstanceProfileName MyNewRole -RoleName MyNewRole -Force + + + * For API details, see [RemoveRoleFromInstanceProfile](https://docs.aws.amazon.com/powershell/v5/reference) in _AWS Tools for PowerShell Cmdlet Reference (V5)_. + + + +