paws.compute (version 0.1.0)

ec2_replace_iam_instance_profile_association: Replaces an IAM instance profile for the specified running instance

Description

Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.

Usage

ec2_replace_iam_instance_profile_association(IamInstanceProfile,
  AssociationId)

Arguments

IamInstanceProfile

[required] The IAM instance profile.

AssociationId

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

Request syntax

svc$replace_iam_instance_profile_association(
  IamInstanceProfile = list(
    Arn = "string",
    Name = "string"
  ),
  AssociationId = "string"
)

Details

Use DescribeIamInstanceProfileAssociations to get the association ID.