iam_remove_role_from_instance_profile: Removes the specified IAM role from the specified EC2...

Description Usage Arguments Details Request syntax Examples

View source: R/iam_operations.R

Description

Removes the specified IAM role from the specified EC2 instance profile.

Usage

1
iam_remove_role_from_instance_profile(InstanceProfileName, RoleName)

Arguments

InstanceProfileName

[required] The name of the instance profile to update.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: \_+=,[email protected]

RoleName

[required] The name of the role to remove.

This parameter allows (through its regex pattern) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: \_+=,[email protected]

Details

Make sure that you do not have any Amazon EC2 instances running with the role you are about to remove from the instance profile. Removing a role from an instance profile that is associated with a running instance might break any applications running on the instance.

For more information about IAM roles, go to Working with Roles. For more information about instance profiles, go to About Instance Profiles.

Request syntax

1
2
3
4
svc$remove_role_from_instance_profile(
  InstanceProfileName = "string",
  RoleName = "string"
)

Examples

1
2
3
4
5
6
# The following command removes the role named Test-Role from the instance
# profile named ExampleInstanceProfile.
svc$remove_role_from_instance_profile(
  InstanceProfileName = "ExampleInstanceProfile",
  RoleName = "Test-Role"
)

paws.security.identity documentation built on Oct. 30, 2019, 11:26 a.m.