

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# AWS Lake Formation 搭配 Amazon Redshift Spectrum 使用
<a name="RSPC-lf"></a>

[Amazon Redshift Spectrum](https://docs.aws.amazon.com/redshift/latest/dg/c-using-spectrum.html) 可讓您查詢和擷取 Amazon S3 資料湖中的資料，而無需將資料載入 Amazon Redshift 叢集節點。

Redshift Spectrum 支援兩種方式來註冊已啟用 Lake Formation 的外部 AWS Glue 資料目錄。
+ 使用具有 Data Catalog 許可的叢集連接 IAM 角色

  若要建立 IAM 角色，請遵循下列程序中概述的步驟。

   [控制對 的存取 AWS Glue Data Catalog](https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-iam-policies.html#c-spectrum-glue-acess)
+  使用設定為管理外部 AWS Glue Data Catalog 資源存取的聯合 IAM 身分

  Redshift Spectrum 支援使用聯合 IAM 身分查詢 Lake Formation 資料表。IAM 身分可以是 IAM 使用者或 IAM 角色。如需 Redshift Spectrum 中 IAM 聯合身分的詳細資訊，請參閱[使用聯合身分管理對本機資源和 Redshift Spectrum 外部資料表的 Amazon Redshift 存取](https://docs.aws.amazon.com/redshift/latest/mgmt/authorization-fas-spectrum.html)。

 透過 Lake Formation 與 Redshift Spectrum 整合，您可以在向 Lake Formation 註冊資料後定義資料表上的資料列、資料欄和儲存格層級存取控制許可。

如需詳細資訊，請參閱[搭配 使用 Redshift Spectrum AWS Lake Formation](https://docs.aws.amazon.com/redshift/latest/dg/spectrum-lake-formation.html)。

Redshift Spectrum 支援 Lake Formation 受管外部結構描述資料表上的讀取或`SELECT`查詢。

如需詳細資訊，請參閱[建立 Redshift Spectrum 的外部結構描述](https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-external-schemas.html)。

## 支援交易資料表類型
<a name="tables-RSPC"></a>

此資料表列出 Redshift Spectrum 中支援的交易資料表格式和適用的 Lake Formation 許可。


**支援的資料表格式**  

| 資料表格式 | 描述和允許的操作 | Redshift Spectrum 中支援的 Lake Formation 許可 | 
| --- | --- | --- | 
|  Apache Hudi  |  用於簡化增量資料處理和資料管道開發的格式。 Redshift Spectrum 支援在 Amazon S3 上使用 Apache Hudi 寫入[https://hudi.apache.org/docs/next/table_types#copy-on-write-table](https://hudi.apache.org/docs/next/table_types#copy-on-write-table)操作。 如需詳細資訊，請參閱[為 Apache Hudi 中管理的資料建立外部資料表](https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-external-tables.html#c-spectrum-column-mapping-hudi)。  | 使用 [Lake Formation 中的資料篩選和儲存格層級安全性](data-filtering.md) 保護使用資料表、資料欄、資料列和儲存格層級許可的 Hudi 資料表。 | 
|  Apache Iceberg  |  一種開放的資料表格式，可管理大型檔案集合做為資料表，並支援現代分析資料湖操作，例如記錄層級插入、更新、刪除和時間歷程查詢。 如需詳細資訊，請參閱[搭配 Amazon Redshift 使用 Apache Iceberg 資料表](https://docs.aws.amazon.com/redshift/latest/dg/querying-iceberg.html)。  |  Redshift Spectrum 支援 Apache Iceberg 資料表進行查詢。  | 
| Linux Foundation Delta Lake | Delta Lake 是一項開放原始碼專案，可協助實作常見於 Amazon S3 或 Hadoop 分散式檔案系統 (HDFS) 的現代資料湖架構。Redshift Spectrum 支援查詢 Delta Lake 資料表。如需詳細資訊，請參閱[為 Delta Lake 中管理的資料建立外部資料表](https://docs.aws.amazon.com/redshift/latest/dg/c-spectrum-external-tables.html#c-spectrum-column-mapping-delta)。 | 支援資料表、資料欄、資料列和儲存格層級許可。 | 

## 其他資源
<a name="add-resources-spc"></a>

**部落格文章和研討會**
+ [ 使用 集中管理資料湖， AWS Lake Formation 同時使用 Amazon Redshift Spectrum 啟用現代資料架構](https://aws.amazon.com/blogs/big-data/centralize-governance-for-your-data-lake-using-aws-lake-formation-while-enabling-a-modern-data-architecture-with-amazon-redshift-spectrum/)
+  [使用 Redshift Spectrum 查詢 Amazon S3 資料湖中的 Apache HUDI 寫入時複製 (CoW) 資料表](https://catalog.us-east-1.prod.workshops.aws/workshops/9f29cdba-66c0-445e-8cbb-28a092cb5ba7/en-US/lab21)