I'm using My-EMR-Role copying and pasting the policy posted in this AWS Guide https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-iam-role.html
When using this configuration:
EMR role: My-EMR-Role
EC2 instance profile: EMR_EC2_DefaultRole
seems to be working.
But when for example I use:
EMR role: My-EMR-Role
EC2 instance profile: My_EMR_EC2_DefaultRole
where My_EMR_EC2_DefaultRole is using the same policy instance of EMR_EC2_DefaultRole the cluster fails with error message:
Terminated with errors - Service role Test-EMR has insufficient EC2 permissions
which is weird as role My-EMR-Role was working when paired with EMR_EC2_DefaultRole - again, both EMR_EC2_DefaultRole and My_EMR_EC2_DefaultRole are referring to the same policy instance AmazonElasticMapReduceforEC2Role provided by AWS.
How come receiving this error when using exactly the same policies?