paws.compute (version 0.1.0)

ec2_disassociate_iam_instance_profile: Disassociates an IAM instance profile from a running or stopped instance

Description

Disassociates an IAM instance profile from a running or stopped instance.

Usage

ec2_disassociate_iam_instance_profile(AssociationId)

Arguments

AssociationId

[required] The ID of the IAM instance profile association.

Request syntax

svc$disassociate_iam_instance_profile(
  AssociationId = "string"
)

Details

Use DescribeIamInstanceProfileAssociations to get the association ID.

Examples

Run this code
# NOT RUN {
# This example disassociates the specified IAM instance profile from an
# instance.
# }
# NOT RUN {
svc$disassociate_iam_instance_profile(
  AssociationId = "iip-assoc-05020b59952902f5f"
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace