Learn R Programming

paws.compute (version 0.7.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.

See https://www.paws-r-sdk.com/docs/ec2_replace_iam_instance_profile_association/ for full documentation.

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.