I am trying to create a cluster using amazon aws console with default role.The cluster gets created and it remains in starting state for sometimes and then terminated with this error:- Failed to provision ec2 instances because 'The requested instance profile EMR_EC2_DefaultRole is invalid'
I tried editing user Trust relationship of Default Role but again it says not authorized.ALso,I have logged in as root account.
I had a similar problem when I was trying to follow the documentation of EMR.
I solved it by: 1. Creating a user in AWS Identity and Access Management(IAM). 2. After I assigned this user to a 'group'(Create a new group). 2a. The group should have the roles that are being used(S3 and EMR). - Click on attachments and select all the ones are not 0.
I hope this helps you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With