Lake Formation Grant Permission on View Occurs an Error.

0

Hi, I granted permission to an IAM user on both view and table. With the permission granted user, I could access the table but not the view.

Here's my Lake Formation configuration. Enter image description here

Here's the error when I try to access view.

Insufficient permissions to execute the query. line 1:15: Failed analyzing stored view 'awsdatacatalog.permission-test-db-03.s3_summary_view': Insufficient Lake Formation permission(s) on hyperbilling_data_clientname

The view is created based on the table and it seems like the view can't access the table itself. Please advise how I can solve this issue.

2개 답변
0
수락된 답변

Hi, From the message captured, it seems that there is a lack of permissions in the query underlying your view. Your view is likely referencing several tables. A view runs as the owner of the view, and is a way for a user with more permissions to grant limited access to a user with less permissions. This means that the query inside of the view is analyzed using the permissions of the user that owns the view. If the view does not have an owner, then we verify that the user accessing the view has permissions to the data.

Anyway, the owner of the view will need SELECT with GRANT of all tables in the view. Could you please check this point and let us know if it solves your issue ? https://docs.aws.amazon.com/lake-formation/latest/dg/tut-grant-select.html

profile pictureAWS
답변함 일 년 전
0

Hi, Thank you so much for the answer! I could solve the issue by granting additional permission to another table which are referenced from the view.

I do have one more simple question just out of curiosity.

  1. Why can't I select any Grantable permissions ** for table permission and select all tables** for resource type when I grant permission to IAMAllowedPrincipals? Is this because IAMAllowedPrincipals doesn't really act as a group, but instead it's more like configuration to allow IAM control?
Sojeong
답변함 일 년 전

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

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

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