admin管理员组文章数量:1289583
I'm trying to stand up a new cluster in AWS EMR, but it immediately fails with the following error:
Service-linked role 'AWSServiceRoleForEMRCleanup' for EMR is required. Please create this role directly or add permission to create it in your IAM entity.
My service role for EMR has the following permission:
- Effect: Allow
Action:
- iam:CreateServiceLinkedRole
- iam:PutRolePolicy
Resource:
- "arn:aws:iam::<account-id>:role/aws-service-role/elasticmapreduce.amazonaws/AWSServiceRoleForEMRCleanup"
I've tried using *
as the resource as well, which produces the same results.
I have also attempted to create the role directly as the error suggests, but that fails due to AWSServiceRole
being a reserved prefix for role names created by AWS.
I'm trying to stand up a new cluster in AWS EMR, but it immediately fails with the following error:
Service-linked role 'AWSServiceRoleForEMRCleanup' for EMR is required. Please create this role directly or add permission to create it in your IAM entity.
My service role for EMR has the following permission:
- Effect: Allow
Action:
- iam:CreateServiceLinkedRole
- iam:PutRolePolicy
Resource:
- "arn:aws:iam::<account-id>:role/aws-service-role/elasticmapreduce.amazonaws/AWSServiceRoleForEMRCleanup"
I've tried using *
as the resource as well, which produces the same results.
I have also attempted to create the role directly as the error suggests, but that fails due to AWSServiceRole
being a reserved prefix for role names created by AWS.
1 Answer
Reset to default 0The solution was to add the CreateServiceLinkedRole permission to the IAM role of the user making the calls, NOT the EMR service role.
本文标签: amazon iamHow can I allow an AWS EMR Cluster to create servicelinked rolesStack Overflow
版权声明:本文标题:amazon iam - How can I allow an AWS EMR Cluster to create service-linked roles - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741467883a2380421.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论