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
전문가
검토됨 한 달 전
  • Thanks very much for your help Bhavay!

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

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

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

관련 콘텐츠