I'm trying to create a new EMR cluster (tried emr-5.30.0 and emr-6.0.0 versions) but I'm receiving the validation message error: "Terminated with errorsService role EMR_DefaultRole has insufficient EC2 permissions".
I've tried this workaround https://aws.amazon.com/premiumsupport/knowledge-center/emr-default-role-invalid/ recreating the default roles for EMR but the validation message error still happening.
Any guidance or recommendations on how to resolve this issue are much appreciated!
Thank you
Based on https://forums.aws.amazon.com/message.jspa?messageID=947039
for me it was very helpful troubleshooting via AWS CloudTrail:
Navigate to the Cloudtrail console: https://console.aws.amazon.com/cloudtrail/
Click on Event History tab
Then use filter as Event Source and in Time range select the timestamp during cluster launch.
From the buttons on Right side, click on the Gear Icon, which is for Show/Hide columns and select the Error Code column check box.
Once all the above is done, go through the list of events and expand the one which has an ErrorCode like AccessDenied, Client.UnauthorizedOperation or any other exception.
Once you know which API call is being denied, you can then investigate further regarding the same.
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