Most AWS data lakes that "use Lake Formation" are still governed entirely by IAM, because the out-of-the-box settings hand every catalogue object to the IAMAllowedPrincipals group. This guide explains the Lake Formation grant model as it actually works on top of the AWS Glue Data Catalog: the default settings, named-resource and LF-Tag grants, data filters, the IAM roles behind crawlers and jobs, and the cross-account version settings that decide how shares travel through AWS Resource Access Manager. It is written for cloud security engineers, data platform owners and auditors who already know IAM and need to know where Lake Formation changes the answer to "who can read this table". For storage-agnostic data lake controls, see the Data Lake Security Guide; this page stays on the AWS-specific mechanics.
This is an independent guide from NHI Mgmt Group, based on AWS's public documentation as of November 2026. It is not sponsored or reviewed by AWS. Product features change, so confirm settings against AWS's current documentation.
Key takeaways
- The defaults mean IAM decides. For Glue compatibility, Lake Formation grants Super to IAMAllowedPrincipals on existing catalogue resources and enables "Use only IAM access control" for new ones, so individual Lake Formation permissions are not in effect until you change both.
- Two permission planes must both say yes. A principal needs an IAM policy that allows the Glue or Lake Formation API call (including lakeformation:GetDataAccess) and a Lake Formation grant on the database, table, column or filter.
- Crawler and job roles are the real data readers. They are non-human identities with Data location and Create permissions that are often broader than any analyst's; scope them per data domain and watch their GetDataAccess calls.
- LF-Tags scale, named grants do not. AWS recommends LF-Tag based access control (LF-TBAC) for large catalogues, because grants grow with principals plus resources rather than principals times resources.
- Cross-account sharing behaviour depends on a version setting. Cross-account version 3 or above is needed for LF-Tag grants to organisations and OUs through AWS RAM, and version 4 or above for sharing resources in hybrid access mode.
How the Lake Formation grant model sits on top of Glue
The AWS Glue Data Catalog holds the metadata (databases, tables, partitions, views); the data stays in Amazon S3 or a federated source. Before Lake Formation, access to both was decided by IAM policies on glue:* and s3:* actions. Lake Formation adds a second, database-style permission layer and a credential vending step: when a registered S3 location is queried, an integrated engine such as Amazon Athena, Amazon EMR, Amazon Redshift Spectrum or an AWS Glue job calls GetDataAccess and receives temporary credentials scoped to what the principal is granted.
| Building block | What it controls | Security point |
|---|---|---|
| Data lake administrator | Initially the only principals that can grant Lake Formation permissions (up to 30) | Do not use an AdministratorAccess user; AWS recommends a separate principal with AWSLakeFormationDataAdmin, which denies PutDataLakeSettings so admins cannot create more admins |
| Data permissions | SELECT, INSERT, DELETE, DESCRIBE, ALTER, DROP on tables; CREATE_TABLE on databases; Super / ALL | Grant option lets the grantee pass a permission on: treat it as a privileged grant |
| Data location permission | Which principals may create catalogue objects pointing at a registered S3 path (Data location in the console) | Without it, a principal with CREATE_TABLE could point a table at someone else's data |
| Registered location | S3 paths whose access Lake Formation vends; registering a path covers its sub-folders | Register with the service-linked role by default; a custom role is required for cross-account locations, AWS managed key encryption, EMR access or CloudWatch Logs metrics |
| IAMAllowedPrincipals | A virtual group meaning "anyone IAM allows" | Super on this group switches Lake Formation enforcement off for that object |
| Data cells filter | Row, column and cell restrictions attached to a SELECT grant | Filters apply to reads only: SELECT is the only permission that can carry one |
| LF-Tags | Key-value attributes on catalogues, databases, tables and columns used for grants | LF-Tags are not IAM tags and are not interchangeable with them |
Least privilege is therefore written in two places. IAM should allow the API surface a role needs (for example lakeformation:GetDataAccess, glue:GetTable, glue:GetPartitions) without granting s3:GetObject on lake buckets directly; Lake Formation should decide which tables, columns and rows. If an IAM policy also grants direct S3 read on the bucket, the principal can bypass every Lake Formation filter by reading the objects. AWS's upgrade procedure ends with removing the old fine-grained Glue and S3 policies for exactly this reason. See the AWS IAM Policies and Roles Guide and the Amazon S3 Security Guide for the bucket side.
Turning Lake Formation enforcement on safely
AWS documents that, to keep backward compatibility with Glue, Lake Formation starts with Super granted to IAMAllowedPrincipals on all existing Data Catalog resources and "Use only IAM access control" enabled for new databases and tables. The Revoke dialog in Administrative roles and tasks also shows IAMAllowedPrincipals holding Create database in the Database creators list. Until these change, Lake Formation grants you make are decorative.
Choose a transition mode
| Approach | How it works | Choose it when | Trade-off |
|---|---|---|---|
| Full cut-over per location | Revoke Super from IAMAllowedPrincipals on every table and database that references a location, register the location, test, move to the next | Small catalogue, few consumers, good inventory of who reads what | Every existing user of that location moves at once; missed principals lose access |
| Hybrid access mode | Register the location in hybrid mode; opted-in principals use Lake Formation permissions, all others keep IAM-only access | Large estates, shared tables with many ETL consumers, phased migration by team | Two models coexist for longer; opted-in principals need both a Lake Formation grant and IAM permissions |
| New catalogue only | Clear both default-permission check boxes before creating objects, so nothing new is granted to IAMAllowedPrincipals | Greenfield lake or a new account in a data mesh | Automation that creates databases or tables fails until it holds explicit grants |
In hybrid mode, AWS notes that registering a location enforces only CREATE_TABLE, CREATE_PARTITION and UPDATE_TABLE through Lake Formation by default, and that order matters: when converting an existing Lake Formation resource to hybrid, opt in the current Lake Formation users and grant Super to IAMAllowedPrincipals first, then change the registration, or current users can lose access.
Phased rollout
- Inventory current access. For each role and user, run IAM ListPoliciesGrantingServiceAccess for the glue namespace or read Access Advisor, and search CloudTrail for Glue calls whose additionalEventData contains insufficientLakeFormationPermissions. AWS warns that CloudTrail is not a complete inventory, so use a long window and include roles used by jobs and crawlers.
- Set up administrators. Create a dedicated data lake administrator, and keep AWSLakeFormationCrossAccountManager only for principals that create shares.
- Replicate grants. Recreate the equivalent permissions with GrantPermissions or BatchGrantPermissions.
- Pilot one location. Run GetEffectivePermissionsForPath on the S3 ARN as a data lake administrator to list the catalogue objects and principals tied to it (results can be incomplete for encrypted catalogues, so verify by hand), revoke Super from IAMAllowedPrincipals on those objects, register the location and test every consumer, including scheduled jobs.
- Close the default. In Data Catalog settings clear both "Use only IAM access control" boxes (or set CreateDatabaseDefaultPermissions and CreateTableDefaultPermissions to empty lists with PutDataLakeSettings) and revoke IAMAllowedPrincipals from Database creators.
- Remove direct paths. Only after Super is revoked everywhere, give users read-only Glue actions plus lakeformation:GetDataAccess and remove broad glue:* and s3:GetObject policies. AWS warns that coarse Glue read policies let a user see metadata for anything still granted to IAMAllowedPrincipals.
- Rollback. Rollback for a location is re-granting Super to IAMAllowedPrincipals on its tables (or switching the registration to hybrid mode with consumers not opted in).
Crawler, job and workflow roles: the non-human readers
Glue crawlers, ETL jobs and Lake Formation blueprints run as IAM roles assumed by glue.amazonaws.com. They read raw zones analysts never see and often outlive their pipeline owner. They deserve the same lifecycle discipline as any other machine identity; see the Service Account Behavioural Baselining Guide.
| Role | Documented baseline | Least-privilege refinement |
|---|---|---|
| Crawler (IAM access) | AWSGlueServiceRole managed policy for catalogue operations, an inline policy granting s3:GetObject on the crawled path, iam:PassRole on the role, KMS decrypt for encrypted data | Scope the S3 resource to the exact prefix, use a scoped-down copy of AWSGlueServiceRole, one role per data domain rather than one shared crawler role |
| Crawler (Lake Formation credentials) | Register the S3 location, grant Data location to the crawler role, grant Create on the output database, add lakeformation:GetDataAccess, select "Use Lake Formation credentials for crawling Amazon S3 data source" | Removes the need for direct S3 permissions on the crawler role; restrict Create to the single output database |
| ETL job role | GetDataAccess on registered locations plus Lake Formation grants on source and target tables | SELECT on sources (with filters where the job does not need sensitive columns), INSERT on targets; no Super; separate roles for jobs that write to curated and raw zones |
| Workflow / blueprint role | AWSGlueServiceRole plus an inline policy allowing lakeformation:GetDataAccess, lakeformation:GrantPermissions and iam:PassRole on itself | GrantPermissions makes this role a grantor: limit who can edit or run workflows and monitor GrantPermissions events from it |
Two documented limits shape crawler design. With Lake Formation credentials, a crawler that targets a Data Catalog table may have only a single catalogue target with a single table, that table must have an underlying S3 location, and an existing catalogue table can be a target only if the crawler and table are in the same account.
Also check who can pass these roles. Any principal with iam:PassRole on a powerful Glue role plus glue:CreateJob or glue:UpdateJob can run code as that role. Restrict iam:PassRole with the iam:PassedToService condition and limit job editing to the pipeline team. See the AWS IAM Permissions Boundaries Guide for capping what pipeline teams can create.
Named resources, LF-Tags and data filters
Choosing the grant method
Named-resource grants attach permissions to specific catalogues, databases, tables or columns. LF-TBAC attaches permissions to tag values, and a principal is allowed an operation when its granted tag value matches the resource's tag. With one LF-Tag, LF-TBAC needs n(P) + n(R) operations where named resources need n(P) × n(R). Tables inherit tags from their database and columns from their table, and inherited values can be overridden.
| Decision factor | Named resources | LF-TBAC |
|---|---|---|
| Catalogue size | Tens of tables, stable | Hundreds or thousands of objects, growing |
| Access pattern | A few one-off grants (an auditor, a single partner table) | Access follows classification or domain, for example classification=restricted or domain=finance |
| Main risk | Grant sprawl and stale grants nobody can explain | A mis-tagged object silently inherits the wrong audience; tag assignment rights become privileged |
AWS's documented LF-TBAC sequence is: define tags and their relationships, create LF-Tag creators, create tags, assign them to resources, grant tag-assignment permissions, grant LF-Tag expressions to principals, and finally revoke the equivalent named-resource grants once LF-TBAC access is verified. A grant must state which permissions apply to which resource type, for example CREATE_TABLE on databases and SELECT, INSERT on tables for a given tag value.
Row, column and cell filters
Data cells filters are created with CreateDataCellsFilter and chosen when SELECT is granted. The combination decides the filter type: all-columns wildcard plus a row filter expression is row-level; specific included or excluded columns with the all-rows wildcard is column-level; both together is cell-level. Row filter expressions use PartiQL WHERE-clause syntax with restrictions, and filters can reference nested struct columns. Creating filters needs SELECT with grant option on the table, and data lake administrators can create them on any table in the account.
- Use filters for: hiding identifiers from analysts (exclude national ID or date of birth columns), regional segregation (country = 'UK' rows only), and partner shares where the partner should see a subset.
- Do not rely on filters for: write paths, or any principal that also holds direct s3:GetObject on the table location.
- Test every engine: AWS lists Athena, Amazon EMR and Redshift Spectrum as supporting row and column security on Lake Formation managed nested tables; confirm your consumers' engine and the documented limitations before relying on a filter.
Classification should drive both tags and filters. See the Data Classification Guide.
Cross-account grants and AWS RAM
Lake Formation shares databases, tables (optionally with column filtering), selected tables or all tables in a database with other accounts, organisations, OUs or individual IAM principals in another account. It uses AWS RAM for the share: within the same organisation the resource is available immediately; across organisations, RAM sends an invitation that the recipient's data lake administrator must accept. Consumers then create resource links so that Athena or Redshift Spectrum can include the shared tables in queries. See the AWS Resource Access Manager Security Guide.
| Cross-account version | Documented behaviour | Grantor permissions to plan for |
|---|---|---|
| Version 1 | Each named-resource grant creates its own RAM share; LF-TBAC grants do not use RAM | glue:PutResourcePolicy for LF-TBAC grants |
| Version 2 | Multiple named-resource grants reuse one RAM share, so fewer invitations | ram:AssociateResourceShare and ram:DisassociateResourceShare if not using AWSLakeFormationCrossAccountManager |
| Version 3 | LF-TBAC grants use RAM; adds sharing to organisations and OUs and directly to an IAM principal in an external account | glue:ShareResource added to the glue:PutResourcePolicy statement; ram:GetResourceShares, conditioned on ram:ResourceShareName LakeFormation* |
| Version 4 | Needed to share resources in hybrid access mode or objects in a federated catalogue | As version 3 |
| Version 5 | Uses wildcard patterns in RAM shares to remove per-resource-type association limits | Cannot be downgraded once set |
Version mismatches fail loudly: if the grantor is below version 3 and the recipient is version 3 or higher, LF-TBAC grants return InvalidInputException. After moving to a newer version, AWS recommends revoking and re-granting older named-resource shares so they use the new mode.
- Direct principal shares: only the recipient principal sees the grant and cannot re-share it; its effective permissions are the union of direct grants and account-level grants cascaded to it.
- Grant option across accounts: a share made with grant option lets the consumer administrator pass access on to its own principals. Your access review must then include the consumer account's grants.
Encryption of catalogue metadata
Glue Data Catalog metadata encryption uses AWS KMS and applies to new objects once enabled (databases, tables, partitions, table versions, column statistics, functions, views and catalogue assets). The AWS managed key aws/glue is used if none is specified; a customer managed key must be symmetric and gives you key policy and rotation control. Without a delegated encryption role, principals need kms:DescribeKey, kms:Encrypt, kms:Decrypt, kms:GenerateDataKey and kms:CreateGrant on the key, with encryption context glue_catalog_id, and principals who grant Lake Formation permissions on an encrypted catalogue also need key access. AWS warns not to disable a key while objects depend on it, and not to remove encryption settings once a crawler has processed an encrypted catalogue. For database credentials in Glue connections, prefer referencing AWS Secrets Manager. See the AWS KMS Security Guide.
Detection and measurement
All Lake Formation API actions are recorded in AWS CloudTrail. The events that matter most for security are PutDataLakeSettings (admin list, defaults, cross-account version), GrantPermissions, BatchGrantPermissions and RevokePermissions, RegisterResource and DeregisterResource, CreateDataCellsFilter, LF-Tag changes, and GetDataAccess. GetDataAccess is logged whenever a principal or integrated service requests credentials for a registered location; its additionalEventData carries requesterService (for example GLUE_JOB), lakeFormationPrincipal and lakeFormationRoleSessionName.
To attribute S3 data events to the originating role, AWS documents setting SET_SOURCE_IDENTITY to TRUE in the data lake settings parameters and adding sts:SetSourceIdentity to the registration role's trust policy for lakeformation.amazonaws.com. S3 data event logging costs extra, so scope it to sensitive buckets. Redshift federated catalogues do not generate GetDataAccess; monitor GetTable and BatchGetTable for those. See the AWS CloudTrail Guide.
| Signal | Why it matters | Suggested response |
|---|---|---|
| PutDataLakeSettings outside change windows | Can add admins, restore IAM-only defaults or change cross-account version | High-priority alert; compare before and after settings |
| GrantPermissions to IAMAllowedPrincipals | Switches enforcement off for that object | Alert and require a ticket reference |
| Grants with grant option, or to external accounts, organisations or OUs | Creates onward or cross-boundary access | Route to data owner for approval review |
| GetDataAccess by a crawler or job role on a location outside its domain | Possible misuse of a pipeline identity | Investigate the session and the job definition that ran |
Metrics that show it is working
- Enforcement coverage: percentage of catalogue tables with no grant to IAMAllowedPrincipals (target 100% outside documented hybrid exceptions).
- Direct S3 bypass: number of IAM principals with s3:GetObject on registered lake buckets other than registration and approved service roles (target trending to zero).
- Tag coverage: percentage of tables and sensitive columns carrying a classification LF-Tag.
- Grant hygiene: count of named-resource grants that duplicate an LF-Tag grant, and grants unused in 90 days of GetDataAccess history.
- Cross-account review: percentage of active RAM shares for Lake Formation with a named data owner and review date in the last quarter.
Framework mapping
| Control area | NIST SP 800-53 Rev 5 | NIST CSF 2.0 | Other |
|---|---|---|---|
| Lake Formation grants, filters and LF-Tags | AC-3 Access Enforcement, AC-6 Least Privilege | PR.AA-05 | CIS Controls v8.1 Control 3 (data protection) and Control 6 (access control management) |
| Data lake administrators and grant option | AC-6(5) Privileged Accounts, AC-2 Account Management | PR.AA-05 | ISO/IEC 27001:2022 A.8.2 Privileged access rights |
| Cross-account shares | AC-21 Information Sharing | PR.AA-05 | ISO/IEC 27001:2022 A.5.14 Information transfer |
| Catalogue metadata encryption | SC-28 Protection of Information at Rest | PR.DS-01 | ISO/IEC 27001:2022 A.8.24 Use of cryptography |
| CloudTrail for grants and GetDataAccess | AU-2 Event Logging, AU-12 Audit Record Generation | DE.CM-03 | ISO/IEC 27001:2022 A.8.15 Logging |
| Threats addressed | MITRE ATT&CK T1530 Data from Cloud Storage, T1078.004 Cloud Accounts (abuse of pipeline roles), T1098 Account Manipulation (unauthorised grants) | ||
Common failure patterns
- Lake Formation "enabled" but IAMAllowedPrincipals still holds Super. Grants are created and reviewed, yet IAM policies decide access. Check the defaults and every table's grant list before claiming fine-grained control.
- Direct S3 access left in place. Analysts or job roles keep s3:GetObject on the lake bucket from the pre-Lake Formation era, so column and row filters are bypassed by reading Parquet files directly.
- One shared crawler role for every source. A single role with read on all raw prefixes and Create on all databases turns any crawler or job edit into lake-wide access. Split by domain.
- Grant option handed out casually. Grants made with grant option, especially to external accounts, let access propagate beyond the data owner's view.
- LF-Tags added but named grants never revoked. Two overlapping grant sets mean revoking a tag does not remove access.
Practitioner checklist
- Confirm which databases and tables still grant Super to IAMAllowedPrincipals, and whether the Data Catalog default-permission boxes are cleared.
- Name dedicated data lake administrators with AWSLakeFormationDataAdmin; no AdministratorAccess principals in the admin list.
- Remove direct s3:GetObject on registered lake buckets from users and roles that should go through Lake Formation.
- Give each crawler and job its own role, scoped to its prefix and output database; prefer Lake Formation credentials for crawling.
- Restrict iam:PassRole on Glue roles with iam:PassedToService and limit who can create or update jobs and workflows.
- Adopt LF-Tags tied to your classification scheme, then revoke the duplicate named-resource grants.
- Record the cross-account version setting, its change history, and an owner and review date for every Lake Formation RAM share.
- Alert on PutDataLakeSettings, grants to IAMAllowedPrincipals, grants with grant option and external shares; enable source identity for S3 data events on sensitive buckets.
Standards and references
- AWS: Changing the default settings for your data lake
- AWS: Upgrading AWS Glue data permissions to the AWS Lake Formation model
- AWS: Hybrid access mode
- AWS: Updating cross-account data sharing version settings
- AWS: Lake Formation tag-based access control
- AWS: Data filtering and cell-level security in Lake Formation
- AWS: Configuring a crawler to use Lake Formation credentials
- AWS: Logging Lake Formation API calls using AWS CloudTrail
Related NHI Mgmt Group resources: Data Lake Security Guide · Amazon Athena Security · AWS Resource Access Manager Security Guide · AWS IAM Policies and Roles Guide · Data warehouse and lakehouse health check