

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

# AWS Lake Formation 和介面 VPC 端點 (AWS PrivateLink)
<a name="privatelink"></a>

Amazon VPC 是一種 AWS 服務，可用來在您定義的虛擬網路中啟動 AWS 資源。您可利用 VPC 來控制您的網路設定，例如 IP 地址範圍、子網路、路由表和網路閘道。

如果您使用 Amazon Virtual Private Cloud (Amazon VPC) 託管 AWS 資源，您可以在 VPC 和 Lake Formation 之間建立私有連線。您可以使用此連線，讓 Lake Formation 可以與 VPC 中的資源通訊，而無需透過公有網際網路。

您可以建立介面 VPC *端點*， AWS Lake Formation 在 VPC 和 之間建立私有連線。介面端點採用 [AWS PrivateLink](https://aws.amazon.com/privatelink)技術，可讓您在沒有網際網路閘道、NAT 裝置、VPN 連線或 Direct Connect 連線的情況下，私下存取 Lake Formation APIs。VPC 中的執行個體不需要公有 IP 地址，即可與 Lake Formation APIs通訊。VPC 和 Lake Formation 之間的流量不會離開 Amazon 網路。

每個介面端點都是由您子網路中的一或多個[彈性網路介面](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-eni.html)表示。

如需詳細資訊，請參閱《Amazon VPC 使用者指南》**中的[介面 VPC 端點 (AWS PrivateLink)](https://docs.aws.amazon.com/vpc/latest/userguide/vpce-interface.html)。

## Lake Formation VPC 端點的考量事項
<a name="vpc-endpoint-considerations"></a>

設定 Lake Formation 的介面 VPC 端點之前，請務必檢閱《*Amazon VPC 使用者指南*》中的[介面端點屬性和限制](https://docs.aws.amazon.com/vpc/latest/userguide/vpce-interface.html#vpce-interface-limitations)。

Lake Formation 支援從您的 VPC 呼叫其所有 API 動作。您可以在 AWS 區域 支援 Lake Formation 和 Amazon VPC 端點的所有 中使用 Lake Formation 搭配 VPC 端點。

## 建立 Lake Formation 的介面 VPC 端點
<a name="vpc-endpoint-create"></a>

您可以使用 Amazon VPC 主控台或 AWS Command Line Interface () 為 Lake Formation 服務建立 VPC 端點AWS CLI。如需詳細資訊，請參閱《Amazon VPC 使用者指南》**中的[建立介面端點](https://docs.aws.amazon.com/vpc/latest/userguide/vpce-interface.html#create-interface-endpoint)。

使用下列服務名稱建立 Lake Formation 的 VPC 端點：
+ com.amazonaws.*region*.lakeformation 

如果您為端點啟用私有 DNS，您可以使用區域的預設 DNS 名稱向 Lake Formation 提出 API 請求，例如 `lakeformation.us-east-1.amazonaws.com`。

如需詳細資訊，請參閱《Amazon VPC 使用者指南》**中的[透過介面端點存取服務](https://docs.aws.amazon.com/vpc/latest/userguide/vpce-interface.html#access-service-though-endpoint)。

## 為 Lake Formation 建立 VPC 端點政策
<a name="vpc-endpoint-policy"></a>

Lake Formation 支援 VPC 端點政策。端點政策是您連接到 VPC 端點以控制哪些 AWS 主體可以使用端點存取 AWS 服務的資源型政策。

您可以將端點政策連接至控制 Lake Formation 存取的 VPC 端點。此政策會指定下列資訊：
+ 可執行動作的主體。
+ 可執行的動作。
+ 可供執行動作的資源。

如需詳細資訊，請參閱 *Amazon VPC 使用者指南*中的[使用 VPC 端點控制對服務的存取](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-endpoints-access.html)。

**範例：Lake Formation 動作的 VPC 端點政策**

下列 Lake Formation 的 VPC 端點政策範例允許使用 Lake Formation 許可來販賣登入資料。您可以使用此政策，從 Amazon Redshift 叢集或私有子網路中的 Amazon EMR 叢集使用 Lake Formation 許可來執行查詢。

```
{
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "lakeformation:GetDataAccess",
            "Resource": "*",
            "Principal": "*"
        }
    ]
}
```

**注意**  
如果您在建立端點時未連接政策，則會連接允許完整存取服務的預設政策。

如需詳細資訊，請參閱 Amazon VPC 文件中的下列主題：
+ [什麼是 Amazon VPC？](https://docs.aws.amazon.com/vpc/latest/userguide/what-is-amazon-vpc.html)
+ [建立界面端點](https://docs.aws.amazon.com/vpc/latest/privatelink/vpce-interface.html#create-interface-endpoint)
+ [使用 VPC 端點政策](https://docs.aws.amazon.com/vpc/latest/privatelink/vpc-endpoints-access.html#vpc-endpoint-policies)