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.

post/#Action=ReplaceIamInstanceProfileAssociation

Query parameters

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

Response

Success