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
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