A SysOps administrator is configuring an AWS Glue crawler to scan an Amazon S3 bucket. The administrator has created a custom IAM role named GlueCrawlerRole that has the required S3 read permissions and has configured AWS Glue as the trusted service in the trust policy. When the administrator attempts to create the crawler using the AWS Management Console and associates it with GlueCrawlerRole, the console displays an error: "Access Denied: You do not have permission to perform this action."
Which action must be taken to successfully create the crawler?
- Attach an IAM policy to the administrator's IAM user that grants iam:PassRole permissions for the GlueCrawlerRole ARN.Cevap
- BAttach an IAM policy to the administrator's IAM user that grants sts:AssumeRole permissions for the GlueCrawlerRole ARN.
- CEdit the trust policy of GlueCrawlerRole to include the administrator's IAM user ARN as a trusted principal.
- DEdit the Amazon S3 bucket policy to grant s3:GetObject and s3:ListBucket permissions directly to the administrator's IAM user.
Cevap
Attach an IAM policy to the administrator's IAM user that grants iam:PassRole permissions for the GlueCrawlerRole ARN.
The correct option is to attach an IAM policy to the administrator's IAM user that grants iam:PassRole permissions. When configuring AWS services to act on your behalf, you must have permission to pass the role to that service. The iam:PassRole permission checks if the user is authorized to associate the specific role with the service.
Adım Adım Çözüm
Anahtar Kavram
IAM PassRole permissions are required to associate an IAM role with an AWS service.