# AWS Lake Formation

**AWS Lake Formation** 是[亚马逊云科技](https://www.edgepedia.org/zh/amazon-web-services)（Amazon Web Services）推出的一项全托管数据治理服务，用于在 [Amazon S3](https://www.edgepedia.org/zh/amazon-s3) 上构建、保护和管理数据湖，为数据湖数据及其在 [AWS Glue](https://www.edgepedia.org/zh/aws-glue) Data Catalog 中的元数据提供细粒度访问控制。该服务在 AWS re:Invent 2018 上发布，于 2019 年 8 月 8 日正式可用，其公开目标是让客户在数天而非数月内构建起安全的数据湖。<sup>[1](https://press.aboutamazon.com/2019/8/aws-announces-general-availability-of-aws-lake-formation)</sup><sup> • </sup><sup>[2](https://aws.amazon.com/blogs/big-data/building-securing-and-managing-data-lakes-with-aws-lake-formation/)</sup>

| 关键事实 | 详情 |
|---|---|
| 功能 | 集中治理、保护并共享用于分析和机器学习的数据，管理对 S3 数据及 Glue Data Catalog 元数据的细粒度访问<sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup> |
| 正式可用 | 2019 年 8 月 8 日；在 AWS re:Invent 2018 上推出<sup>[1](https://press.aboutamazon.com/2019/8/aws-announces-general-availability-of-aws-lake-formation)</sup><sup> • </sup><sup>[2](https://aws.amazon.com/blogs/big-data/building-securing-and-managing-data-lakes-with-aws-lake-formation/)</sup> |
| 权限粒度 | 数据库、表、列、行和单元格级别，在 Amazon Athena、Amazon Redshift Spectrum、Amazon EMR 和 AWS Glue 中统一执行<sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup> |
| 权限模型 | 一种授权或撤销机制，对 IAM 形成补充，据描述类似于关系数据库管理系统<sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup> |
| 定价 | 通过集成服务创建和使用的权限免费；Amazon S3 和 AWS Glue 等底层服务按标准收费<sup>[4](https://aws.amazon.com/blogs/aws/aws-lake-formation-now-generally-available/)</sup><sup> • </sup><sup>[5](https://www.inferse.com/platforms/aws-lake-formation/)</sup> |
| 跨账户共享 | 使用 AWS Resource Access Manager；自 2026 年 2 月起，单个 RAM 资源共享支持不限数量的表（跨账户版本 5）<sup>[6](https://docs.aws.amazon.com/lake-formation/latest/dg/cross-account-permissions.html)</sup><sup> • </sup><sup>[7](https://aws.amazon.com/about-aws/whats-new/2026/02/aws-lake-formation-cross-account-sharing/)</sup> |
| 用户评分 | Gartner Peer Insights 上为 4.4 分（满分 5 分，19 条评分），G2 上为 4.4 分（满分 5 分，36 条评价）<sup>[8](https://www.gartner.com/reviews/product/aws-lake-formation)</sup><sup> • </sup><sup>[9](https://www.g2.com/products/aws-lake-formation/competitors/alternatives)</sup> |

## 目的与起源

数据湖是一个集中式、经过整理且受保护的存储库，可存储任意规模的结构化和非结构化数据，且无需先对数据进行结构化处理。<sup>[10](https://aws.amazon.com.cdn.amazon.com/blogs/big-data/getting-started-with-aws-lake-formation/)</sup> 这类存储库的主要管理挑战来自存储原始数据时缺乏内容监管；要让数据可用，就需要有编目和保护数据的机制。<sup>[10](https://aws.amazon.com.cdn.amazon.com/blogs/big-data/getting-started-with-aws-lake-formation/)</sup> Lake Formation 提供了这些机制：治理、语义一致性和访问控制，以及过去需要复杂手工步骤的数据摄入、编目和清洗。<sup>[1](https://press.aboutamazon.com/2019/8/aws-announces-general-availability-of-aws-lake-formation)</sup><sup> • </sup><sup>[10](https://aws.amazon.com.cdn.amazon.com/blogs/big-data/getting-started-with-aws-lake-formation/)</sup>

发布时，AWS 强调了三大优势：识别、摄入、清洗和转换数据；在一处定义安全策略并在多个服务中统一执行；以及构建一个描述数据集及其适当业务用途的目录，使用户能够找到正确的数据进行分析。<sup>[2](https://aws.amazon.com/blogs/big-data/building-securing-and-managing-data-lakes-with-aws-lake-formation/)</sup> 早期客户包括[松下](https://www.edgepedia.org/zh/panasonic)（Panasonic）、安进（Amgen）和爱尔康（Alcon）；松下航空电子的云与数据服务总监阿南德·德西坎（Anand Desikan）描述道，只需定义一次策略，就能在包括 AWS Glue 和 [Amazon Athena](https://www.edgepedia.org/zh/amazon-athena) 在内的服务中处处以相同方式执行。<sup>[1](https://press.aboutamazon.com/2019/8/aws-announces-general-availability-of-aws-lake-formation)</sup>

## 权限模型的工作方式

Lake Formation 提供自己的权限模型，对 AWS Identity and Access Management（IAM）形成补充。它通过简单的授权或撤销机制，授予对 Data Catalog 资源（目录、数据库、表和视图）及底层数据的访问权限，很像关系数据库管理系统。<sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup> 授权可以将访问限制到表的特定列或行，数据筛选器则可以限制对列和行组合的访问，从而实现单元格级安全——AWS 将这一功能定位为保护个人身份信息等敏感数据的手段。<sup>[11](https://docs.aws.amazon.com/lake-formation/latest/dg/granting-catalog-permissions.html)</sup><sup> • </sup><sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup>

**两种访问控制方法。** 细粒度访问控制可以通过两种方式配置。方法 1 让 Lake Formation 权限保持开放（特殊权限 `Super` 被授予自动创建的 `IAMAllowedPrincipals` 组），由 IAM 策略控制一切；这是为兼容 AWS Glue 而设的默认方式，在控制台中显示为“仅使用 IAM 访问控制”。方法 2 是推荐方法，使用 Lake Formation 细粒度权限进行数据访问，并结合粗粒度 IAM 权限，让主体能够调用所需的 API，而无需在 IAM 中重复数据级策略。<sup>[12](https://docs.aws.amazon.com/lake-formation/latest/dg/access-control-fine-grained.html)</sup> AWS 建议在过渡到 Lake Formation 权限后禁用仅 IAM 的默认设置。<sup>[12](https://docs.aws.amazon.com/lake-formation/latest/dg/access-control-fine-grained.html)</sup>

**底层数据访问。** Lake Formation 权限始终与 IAM 权限结合使用，以访问底层 S3 数据。读写已注册 S3 位置的主体需要 `lakeformation:GetDataAccess` IAM 权限，Lake Formation 会代入一个已注册的 IAM 角色，向集成服务提供临时凭证。Amazon S3 位置是存储桶或前缀，而非单个对象，被授予某位置数据位置权限的主体对该位置下的所有子位置也拥有权限。<sup>[13](https://docs.aws.amazon.com/lake-formation/latest/dg/access-control-underlying-data.html)</sup> 权限模型本身并不能阻止拥有 IAM 或 S3 策略访问权限的主体通过 S3 API 或控制台访问 S3；客户必须附加 IAM 策略来阻断该路径。<sup>[13](https://docs.aws.amazon.com/lake-formation/latest/dg/access-control-underlying-data.html)</sup>

## 基于标签和基于属性的访问控制

为了将治理扩展到单个授权之外，Lake Formation 提供基于标签的访问控制（LF-TBAC）。LF-Tag 是一个键值对，例如 `department=sales`，附加到数据库、表或列上；匹配的 LF-Tag 与资源标签相符的主体即可访问该资源。AWS 建议在拥有大量数据库和表的数据湖中使用这种方法，因为它用少量逻辑标签取代了针对数千个资源的策略定义，并且标签可以通过 AWS Glue Sensitive Data Detection 等服务动态填充，该服务可识别信用卡号等个人身份信息。<sup>[14](https://docs.aws.amazon.com/pdfs/lake-formation/latest/dg/lake-formation-dg.pdf)</sup><sup> • </sup><sup>[15](https://aws.amazon.com/lake-formation/features/)</sup>

主体对某资源拥有的权限，是命名资源授权和 LF-Tag 授权所授予权限的并集。<sup>[14](https://docs.aws.amazon.com/pdfs/lake-formation/latest/dg/lake-formation-dg.pdf)</sup> 行级安全策略也可以通过 LF-Tag 扩展，不过 AWS 自己的指南指出了其中的权衡：更改筛选策略需要逐一更新每个筛选器，而更宽泛的访问授权与 UNION 结合，可能会意外暴露本应受保护的数据。<sup>[16](https://www.repost.aws/articles/ARLDDbAuKqRQmdyQtZJs2qyw/policy-driven-row-level-security-rls-in-aws-lake-formation?sc_ichannel=ha&sc_icontent=ARLDDbAuKqRQmdyQtZJs2qyw&sc_ilang=en&sc_iplace=hp&sc_ipos=8&sc_isite=repost)</sup>

## 摄入、编目与共享

Lake Formation 可从运行于 [Amazon RDS](https://www.edgepedia.org/zh/amazon-rds) 或托管在 Amazon EC2 上的 MySQL、PostgreSQL、SQL Server、MariaDB 和 Oracle 数据库摄入数据，支持批量加载和增量加载，并可通过 JDBC 从本地数据库迁移数据。其他来源需要使用 AWS Glue 构建自定义 ETL 作业。<sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup> AWS Glue 爬网程序读取 S3 数据，提取数据库和表结构，并将其存储在可搜索的 Data Catalog 中；控制台还可以创建多级联邦目录，将 S3 数据湖、[Amazon Redshift](https://www.edgepedia.org/zh/amazon-redshift) 数据仓库、[Amazon DynamoDB](https://www.edgepedia.org/zh/amazon-dynamodb) 等操作型数据库以及 Google BigQuery 和 MySQL 等第三方来源统一起来，而无需迁移数据。<sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup>

**跨账户共享。** Lake Formation 使用 AWS Resource Access Manager 来协助授权，将 Data Catalog 资源共享给其他 AWS 账户、AWS Organizations、组织单位，或直接共享给另一账户中的 IAM 主体。当账户属于同一组织时，共享资源立即可用；否则，接收账户的数据湖管理员必须接受 AWS RAM 邀请。接收方通过资源链接经 Athena 或 Redshift Spectrum 查询共享表，资源链接是 Data Catalog 中类似于 Linux 符号链接的实体。<sup>[6](https://docs.aws.amazon.com/lake-formation/latest/dg/cross-account-permissions.html)</sup><sup> • </sup><sup>[17](https://docs.aws.amazon.com/lake-formation/latest/dg/cross-data-sharing-lf.html)</sup> 2026 年 2 月的一次更新取消了此前按资源类型设定的关联限制：跨账户版本 5 为不限数量的表建立单个 AWS RAM 资源共享，支持拥有数十万共享表的环境，现有共享和 API 保持兼容。<sup>[7](https://aws.amazon.com/about-aws/whats-new/2026/02/aws-lake-formation-cross-account-sharing/)</sup>

出于许可或其他用途的外部共享通过 AWS Data Exchange 进行，允许企业间共享数据而无需移动或复制数据。<sup>[15](https://aws.amazon.com/lake-formation/features/)</sup>

## 审计与执行

Lake Formation 按角色和用户跟踪数据交互，并通过 Amazon CloudTrail 生成全面的审计日志，显示哪些用户或角色在何时、通过哪些服务尝试访问了哪些数据。<sup>[15](https://aws.amazon.com/lake-formation/features/)</sup><sup> • </sup><sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup> 2026 年 6 月，该服务将表权限扩展到直接访问 S3 文件：SELECT 权限授予对底层 S3 数据文件的读取访问，SUPER 权限授予读写访问，使用具有受限访问范围的临时凭证，内置支持 [Amazon EMR](https://www.edgepedia.org/zh/amazon-emr) 7.13 及更高版本，通过 API 或开源插件与 [Apache Spark](https://www.edgepedia.org/zh/apache-spark) 和 Trino 集成，所有访问均记录在 CloudTrail 中。<sup>[18](https://aws-news.com/article/2026-06-12-aws-lake-formation-extends-table-permissions-to-access-underlying-data-in-amazon-s3)</sup>

## 采用与替代方案

由于 Lake Formation 为兼容 Glue 而默认采用仅 IAM 访问控制，组织可以逐步采用它。混合访问模式让管理员能够选择性地为特定数据库、表和用户启用 Lake Formation 权限，而不打断其他工作负载现有的基于 IAM 的策略。<sup>[3](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)</sup> AWS 最佳实践指南建议将管理员角色限制在需要完整 Glue Data Catalog 访问权限的人员范围内，并明确建议不要让 Glue 爬网程序角色成为数据湖管理员。<sup>[19](https://aws.github.io/aws-lakeformation-best-practices/adopting-lake-formation/general-best-practices/)</sup>

对比网站将 Lake Formation 归入数据湖和湖仓治理工具之列。G2 将 Google Cloud BigQuery、Databricks、Snowflake 和 [Microsoft SQL Server](https://www.edgepedia.org/zh/microsoft-sql-server) 列为常见的对比替代方案，评论者最常以安全性和数据分析作为区分因素。<sup>[9](https://www.g2.com/products/aws-lake-formation/competitors/alternatives)</sup> 一份独立的湖仓排名将 Databricks Lakehouse Platform、搭配 Polaris Catalog 的 Snowflake 和 Google BigLake 列为其首选替代方案，并指出 Lake Formation 可能不太适合多云团队或希望采用单一集成湖仓供应商的组织。<sup>[20](https://www.zendikt.com/alternatives/aws-lake-formation/)</sup> 面向实践者的对比文章同样将 Lake Formation 定位为与 S3 和 Glue 生态系统绑定的治理工具，与 Databricks Unity Catalog、Microsoft Purview 和 Snowflake Horizon 等更广泛的多引擎目录并列。<sup>[21](https://dataengineeracademy.com/blog/data-governance-in-the-cloud-lake-formation-unity-catalog-purview-and-snowflake-horizon/)</sup>

## References

1. [AWS Announces General Availability of AWS Lake Formation, Amazon US Press Center](https://press.aboutamazon.com/2019/8/aws-announces-general-availability-of-aws-lake-formation)
2. [Build, secure, and manage data lakes with AWS Lake Formation, AWS Big Data Blog](https://aws.amazon.com/blogs/big-data/building-securing-and-managing-data-lakes-with-aws-lake-formation/)
3. [What is AWS Lake Formation?, AWS Lake Formation Developer Guide](https://docs.aws.amazon.com/lake-formation/latest/dg/what-is-lake-formation.html)
4. [AWS Lake Formation – Now Generally Available, AWS News Blog](https://aws.amazon.com/blogs/aws/aws-lake-formation-now-generally-available/)
5. [AWS Lake Formation in 2026: Pricing, Plans and Alternatives, Inferse](https://www.inferse.com/platforms/aws-lake-formation/)
6. [Cross-account data sharing in Lake Formation, AWS Lake Formation Developer Guide](https://docs.aws.amazon.com/lake-formation/latest/dg/cross-account-permissions.html)
7. [AWS Lake Formation enhances cross-account sharing, AWS What's New](https://aws.amazon.com/about-aws/whats-new/2026/02/aws-lake-formation-cross-account-sharing/)
8. [AWS Lake Formation Reviews & Ratings, Gartner Peer Insights](https://www.gartner.com/reviews/product/aws-lake-formation)
9. [Top 10 AWS Lake Formation Alternatives & Competitors, G2](https://www.g2.com/products/aws-lake-formation/competitors/alternatives)
10. [Getting started with AWS Lake Formation, AWS Big Data Blog](https://aws.amazon.com.cdn.amazon.com/blogs/big-data/getting-started-with-aws-lake-formation/)
11. [Granting permissions on Data Catalog resources, AWS Lake Formation Developer Guide](https://docs.aws.amazon.com/lake-formation/latest/dg/granting-catalog-permissions.html)
12. [Methods for fine-grained access control, AWS Lake Formation Developer Guide](https://docs.aws.amazon.com/lake-formation/latest/dg/access-control-fine-grained.html)
13. [Underlying data access control, AWS Lake Formation Developer Guide](https://docs.aws.amazon.com/lake-formation/latest/dg/access-control-underlying-data.html)
14. [AWS Lake Formation Developer Guide (PDF), AWS Documentation](https://docs.aws.amazon.com/pdfs/lake-formation/latest/dg/lake-formation-dg.pdf)
15. [AWS Lake Formation Features, Amazon Web Services](https://aws.amazon.com/lake-formation/features/)
16. [Policy driven Row Level Security (RLS) in AWS Lake Formation, AWS re:Post](https://www.repost.aws/articles/ARLDDbAuKqRQmdyQtZJs2qyw/policy-driven-row-level-security-rls-in-aws-lake-formation?sc_ichannel=ha&sc_icontent=ARLDDbAuKqRQmdyQtZJs2qyw&sc_ilang=en&sc_iplace=hp&sc_ipos=8&sc_isite=repost)
17. [Cross-account data sharing in Lake Formation (resource links), AWS Lake Formation Developer Guide](https://docs.aws.amazon.com/lake-formation/latest/dg/cross-data-sharing-lf.html)
18. [AWS Lake Formation extends table permissions to access underlying data in Amazon S3, The AWS News Feed](https://aws-news.com/article/2026-06-12-aws-lake-formation-extends-table-permissions-to-access-underlying-data-in-amazon-s3)
19. [General Best Practices, AWS Lake Formation Best Practices Guides](https://aws.github.io/aws-lakeformation-best-practices/adopting-lake-formation/general-best-practices/)
20. [AWS Lake Formation + Iceberg alternatives, Zendikt](https://www.zendikt.com/alternatives/aws-lake-formation/)
21. [Data Governance in the Cloud: Lake Formation, Unity Catalog, Purview, and Snowflake Horizon, Data Engineer Academy](https://dataengineeracademy.com/blog/data-governance-in-the-cloud-lake-formation-unity-catalog-purview-and-snowflake-horizon/)

---
*Initially written Oct 26, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Databases and data systems › Data mining, warehousing, and big data › Big data industry, companies, and products

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/aws-lake-formation

English original: https://www.edgepedia.org/aws-lake-formation
