I am trying to create a crawler in AWS Glue, but it gives error: {"service":"AWSGlue","statusCode":400,"errorCode":"AccessDeniedException","requestId":"<requestId>","errorMessage":"Account <accountId> is denied access.","type":"AwsServiceError"}
.
This is what I’ve done so far:
- Create a database in AWS Glue
- Add tables in the database using a crawler
- Name the crawler
- Choose Amazon S3 as the data store and specified a path to a csv file inside a bucket in my account
- Choose an existing IAM role I’ve created before
- Choose a database I’ve created before
- Press finish.
When I press finish, the above error is occurred.
I have grant AdministratorAccess
both to IAM user and role used to create the crawler, so I assume there is no lack of permission issues. The bucket used is not encrypted and located in the same region as the AWS Glue.
I also have tried to create another database and specified a path to a different csv file but it is not solved the problem.
Any help would be very appreciated. Thanks.
2
Answers
I have contacted the owner (the root user) of this account and the owner asked for help to AWS Premium Support. The AWS Premium Support told us that all the required permissions to create AWS Glue Crawler are already provided and there is no SCPs attached to the account. After waiting around 7-working-day, finally I can create AWS Glue Crawler without any errors.
Unfortunately, I don't have any further information on how the AWS Premium Support solve the issue. For those of you who encounter similar errors like me, just try to contact the owner of the account, because most likely the issue is out of your control. Hope this helps in the future. Thanks.
After Lot of research I found this is permission issue of Amazon S3 service in IAM. Give permission of S3Services in IAM Role.