AWS EMR Cluster fails to launch

Question:

I am trying to launch an AWS EMR Cluster from the AWS Console, and am getting the following error:

Any one know what this means and how to resolve it?

The following is the role policy:

Its trust policy document is:

Answer:

I finally resolved this issue. This was confusing because the instance-profile and the role use the same name by default. Full steps outline below, but you may be able to skip various steps.

  1. Create default roles (if error, downgrade to awscli version 1.10.30)

    aws emr create-default-roles

  2. Create instance profile if it doesn’t already exist:

    aws iam create-instance-profile --instance-profile-name EMR_EC2_DefaultRole

  3. Verify that instance profile exists but doesn’t have any roles:

    aws iam get-instance-profile --instance-profile-name EMR_EC2_DefaultRole

  4. Add the role using:

    aws iam add-role-to-instance-profile --instance-profile-name EMR_EC2_DefaultRole --role-name EMR_EC2_DefaultRole

Leave a Reply