Lesson 3 of 7 Analytics: Data Lakes, Athena, Glue, EMR, Redshift and QuickSight

Governing Data Lake Permissions with AWS Lake Formation

This lesson explains how AWS Lake Formation centralises permissions for a data lake, so access can be granted at database, table, column, row and cell level and enforced by every analytics engine.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe how Lake Formation manages access.
  • Explain why IAM and S3 policies cannot express table-level rules.

How Lake Formation works

AWS Lake Formation centralises access governance for a data lake. Administrators register S3 locations with Lake Formation, which then manages access to the Glue Data Catalog databases and tables defined over them. Permissions can be granted down to the column, row and cell level, which S3 bucket policies cannot express.

LF-Tags give tag-based access control that scales to many tables: permissions are granted on tags, such as classification=confidential, and apply to every table and column with that tag. Lake Formation shares data across accounts without copying it, and its permissions are enforced by Amazon Athena, Redshift Spectrum, Amazon EMR and AWS Glue.

The following diagram shows one table seen differently by two roles.

Lake Formation permissions at column level. The same customers table is shared with two roles: analysts are granted every column except those tagged classification=confidential, while the finance team is granted all columns. Athena, Redshift Spectrum, EMR and Glue enforce the grants, which S3 bucket policies could not express.
The table and tag are illustrative. Granting on the tag covers every table with confidential columns.

Why not just IAM and S3 policies?

S3 bucket policies and IAM policies work at the level of buckets, prefixes and objects; they know nothing about tables, columns or rows. A requirement such as "analysts may see every column of the customers table except personal data, and only rows for their own country" cannot be expressed with them.

Lake Formation expresses exactly that, in one place, on the Data Catalog table, and every integrated engine enforces it. A data steward grants the permission once, rather than maintaining separate copies of the data for each audience.

Sort into groups

Lake Formation or S3 policies?

Exam skills 3.5.1 · 1.3.6

Decide which control can express each requirement.

Log in to try this activity Interactive activities are free with an account.
Worked example

Different views of the same tables

Lake Formation can give different teams different views of the same tables. The following table describes the permission granted to each team.

TeamLake Formation permission
FinanceAll columns of the sales tables
MarketingSales tables without the customer email and phone columns
Regional managersOnly rows for their own region (row-level filter)
Partner accountRead access to one curated table, shared cross-account

All four see the same data in S3 through Athena, with no copies and no separate bucket policies. LF-Tags such as classification=pii keep the rules manageable as tables are added.

Check yourself

What does Lake Formation add to IAM and S3 permissions?

Show answer

Fine-grained permissions on databases, tables, columns and rows in the Data Catalog, managed in one place and enforced by services such as Athena and Redshift Spectrum.

Exam Tips

Remember for the exam

  • For column-level or row-level permissions on a data lake, use Lake Formation.
  • To manage data lake permissions for many tables with tags, use LF-Tags.
  • To share data lake tables with another account without copying, use Lake Formation.