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.