Insufficient Permissions to execute query

0

Insufficient permissions to execute the query. Insufficient Lake Formation permission(s) on block This query ran against the "sgp_mocha_u1" database, unless qualified by the query.

Query Id: b6bff455-55d0-43e9-bab5-8c7e8cbe953f

질문됨 일 년 전695회 조회
1개 답변
1

Hello,

Greetings of the day.

Thank you for reaching out with your concern in AWS re:Post.

I understand that you received insufficient permissions error while executing a query in lake formation. This error might occur if user/role executing the query may not have sufficient Lake Formation permissions.

To begin with, I would recommend checking the permissions attached to the IAM role/user. Please ensure that the role/user has following permissions [1]-

  • lakeformation:GrantPermissions
  • lakeformation:BatchGrantPermissions
  • lakeformation:RevokePermissions
  • lakeformation:BatchRevokePermissions
  • glue:GetTable or glue:GetDatabase for a table or database that you're granting permissions on with the named resource method

Also, you can use the named resource method to grant Lake Formation permissions on specific Data Catalog databases and tables. [2]

In order to debug further, if you're still having issues, you can use AWS CloudTrail to see the error logs and proceed accordingly.

Also, you can refer the following documentations which might help in resolving the errors-

https://docs.aws.amazon.com/lake-formation/latest/dg/troubleshooting.html https://repost.aws/knowledge-center/glue-insufficient-lakeformation-permissions
https://docs.aws.amazon.com/lake-formation/latest/dg/granting-database-permissions.html

I hope the above information is helpful to you.

Thank you and have a great day ahead.

References:-

[1]- https://docs.aws.amazon.com/lake-formation/latest/dg/required-permissions-for-grant.html

[2]- https://docs.aws.amazon.com/lake-formation/latest/dg/granting-database-permissions.html

AWS
답변함 일 년 전
AWS
전문가
검토됨 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인