v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-171,1822,9897.4 MB

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.

Use DescribeIamInstanceProfileAssociations to get the association ID.

get/#Action=ReplaceIamInstanceProfileAssociation

Query parameters

Arnstring

The Amazon Resource Name (ARN) of the instance profile.

Namestring

The name of the instance profile.

The IAM instance profile.

AssociationIdstring required

The ID of the existing IAM instance profile association.

Action'ReplaceIamInstanceProfileAssociation' required
Version'2016-11-15' required

Response

Success