EMR cluster create error: "Failed to authorize instance profile arn:aws:iam::011476750252:instance-profile/EMR_EC2_DefaultRole"

0

I have created EMR default roles by aws emr create-default-roles and then want to create an EMR cluster.

But when I click the "create cluster" button, it says: An error occurred (AccessDeniedException) when calling the RunJobFlow operation: Failed to authorize instance profile arn:aws:iam::011476750252:instance-profile/EMR_EC2_DefaultRole

Do I miss some permissions or did anything else cause this?

Thanks very much.

duwan
질문됨 2년 전903회 조회
1개 답변
0

Hi Duwan, I see you're getting an error while creating a cluster using the default role. There seems to be an issue relating to instance profile. To resolve it, you can try the following:

If you have modified AmazonElasticMapReduceRole or AmazonElasticMapReduceforEC2Role, make sure you review the change as that could be preventing the authorization.

If you weren't able to detect the problem in the roles, I suggest you delete and recreate the roles and instance profile either in the console by deleting the role in IAM console which automatically deletes the instance profile or by using the following commands in AWS cli available in https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_manage_delete.html

Do keep in mind that deleting an instance profile can affect applications on instances using the roles. I hope this helps!

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인