How to resolve AWS EC2 error “The association iip-assoc-xxxxxxxx is not the active association”?

This error occurs when you try to disassociate and associate back an instance profile (IAM role attached to the instance) to your EC2 instance in quick succession. The error can be resolved using AWS CLI as shown in the below example –

Leave a Reply