Skip to content

Data filters are not applied to role when permissions are provided to database/tables via LF-tags

0

Data filters are not applied to role when permissions are provided to database/tables via LF-tags - But filters work when table permissions are provided directly to aws roles instead of LF-tags - Any pointers would be helpful - thanks

asked 2 months ago63 views
1 Answer
0

You're correct. Data filters cannot be applied when using LF-Tags to manage permissions on Data Catalog resources. This is a limitation in AWS Lake Formation.

When you want to implement data filtering (column-level, row-level, or cell-level security), you must use the named resource method to grant permissions directly to the principals (such as IAM users and roles) rather than using LF-Tags.

To apply data filters correctly:

  1. Use the "Named Data Catalog resources" option when granting permissions in Lake Formation
  2. Specify the database, table, and data filter explicitly
  3. Grant the appropriate permissions (like SELECT and DESCRIBE) on the data filter to your principals

For example, when granting table permissions with a data filter:

  • Choose "Named Data Catalog resources" (not LF-Tags)
  • Select your specific database and table
  • Create or select an existing data filter
  • Grant the necessary permissions to your IAM role

This approach allows you to implement fine-grained access control at the column, row, or cell level while the LF-Tag based approach does not support this functionality.
Sources
Using AWS Lake Formation with Amazon Athena - AWS Lake Formation
Granting data filter permissions - AWS Lake Formation
Enforce fine-grained access control on data lake tables using AWS Glue 5.0 integrated with AWS Lake Formation | AWS Big Data Blog

answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.