Lake Formation Security Demo

0

Hi all, I need to demonstrate lake formation data filters usage. What is the easiest way to query this data and show the difference caused by filters. I have 2 roles accessible to my account. One role would just be full access and the other one would be granted a data filter as required. I also have data in S3 buckets and glue catalog tables created as well. Is it possible to query and show the difference in redshift query editor easily?

sg03
已提問 5 個月前檢視次數 298 次
1 個回答
0
已接受的答案

Hello,

You can implement column-level, row-level, and cell-level security by creating data filters in LakeFormation. As you already have the glue data catalog tables created along with corresponding data in s3 bucket, you can create a data filter straightaway as per your use-case by referring to the steps mentioned in documentation [1].

You can go to LakeFormation Console and select “Data Filters” using the menu present on the left hand side of the console. Then you can click on “Create new filter” button to create a new data filter for your target database and table. Please select the desired level of Column-level and row-level access as per your use-case and then click on “Create Data Filter” button.

Once the data filter is created, you can go to LakeFormation console and select “Tables”, select the table for which you created the data filter, then go to Actions > Grant to grant the required access.

One of your roles can continue having the full access, and you can restrict the access for the other role based on the data filter your created in the above step.

After completing all the steps, you can query this table easily using Amazon Athena [2] for any of the roles to analyze the differences caused by data filters.

If you don't want to use Athena, you can consider using Amazon Redshift Spectrum [3] with AWS Lake Formation. Please refer to documentation [4] for more guidance.

References:

[1] https://docs.aws.amazon.com/lake-formation/latest/dg/data-filtering-overview.html

[2] Amazon Athena: https://aws.amazon.com/athena/

[3] Amazon Redshift Spectrum: https://docs.aws.amazon.com/redshift/latest/dg/c-getting-started-using-spectrum.html

[4] https://docs.aws.amazon.com/redshift/latest/dg/spectrum-lake-formation.html

AWS
支援工程師
已回答 5 個月前
profile picture
專家
已審閱 1 個月前
  • Thanks very much for your help Bhavay!

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

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

回答問題指南