Getting Access Denied error while querying a Glue Table using Athena

0

Getting below error while querying a Glue Table using Athena

com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied; Request ID: YJSJ0PG0E56Z80R7; S3 Extended Request ID: /xxxxxxxxxxx==; Proxy: null), S3 Extended Request ID: /xxxxxxxxx/xxxxxxxx== (Bucket: <bucket>, Key: <prefix>/filename.txt/) This query ran against the "test_glue_db" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: 4d3898a0-d82f-47e5-856d-614e3b88d792

Maybe this is because of that trailing slash in S3 key. But I don't know what causing this slash. Anyone having solution for it??

Vinay
已提問 3 個月前檢視次數 364 次
1 個回答
0
已接受的答案

Hi,

Thank you for reporting this issue.

The shared error message, explains the IAM role used by Athena to query the S3 bucket does not sufficient permission to access the S3 bucket / Object.

Please double confirm the IAM user/role has sufficient permission to access the above shared S3 bucket / object. Example: s3:ListBucket. Additionally, please check this re:post that explains the root cause of this issue with workaround.

Also, I would like to suggest you to remove the S3 bucket details from this re:post as this could create security issue. However, if you are unable to resolve this issue after adding the require permission, please create support ticket with us and we will help you to troubleshoot this issue further.

AWS
支援工程師
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南