在 Outpost 上建立端點 - Amazon S3 on Outposts

在 Outpost 上建立端點

若要將請求路由至 Amazon S3 on Outpost 存取點,您必須建立和設定 S3 on Outposts 端點。若要建立端點,您需要與 Outposts 主要區域的服務連結有效連接。Outpost 上的每個 Virtual Private Cloud (VPC) 可以有一個相關聯的端點。如需端點配額的詳細資訊,請參閱 S3 on Outposts 網路需求。您必須建立端點,才能存取您的 Outposts 儲存貯體並執行物件操作。如需更多詳細資訊,請參閱 端點

許可

如需建立端點所需許可的詳細資訊,請參閱 適用於 S3 on Outposts 端點的許可

當您建立端點時,S3 on Outposts 也會在您的 AWS 帳戶 中建立服務連結角色。如需更多詳細資訊,請參閱 針對 Amazon S3 on Outposts 使用服務連結角色

以下範例示範如何使用 AWS 管理主控台、AWS Command Line Interface (AWS CLI) 和 適用於 Java 的 AWS SDK 建立 S3 on Outposts 端點。

  1. 登入 AWS 管理主控台,並開啟位於 https://console.aws.amazon.com/s3/ 的 Amazon S3 主控台。

  2. 在左側導覽窗格中,選擇 Outposts access points (Outposts 存取點)。

  3. 選擇 Outposts endpoints (Outposts 端點) 索引標籤。

  4. 選擇 Create Outposts endpoint (建立 Outposts 端點)。

  5. Outpost 下,選擇 Outpost 以建立此端點。

  6. VPC 下,選擇還沒有端點且符合 Ourposts 端點規則的 VPC。

    Virtual Private Cloud (VPC) 可讓您將 AWS 資源啟動到您定義的虛擬網路。這個虛擬網路與您在資料中心中操作的傳統網路非常相似,且具備使用 可擴展基礎設施的優勢AWS

    如果您沒有 VPC,請選擇 Create VPC (建立 VPC)。如需詳細資訊,請參閱《Amazon S3 使用者指南》中的建立僅限虛擬私有雲端 (VPC) 使用的存取點

  7. 選擇 Create Outposts endpoint (建立 Outposts 端點)。

下列 AWS CLI 範例使用 VPC 資源存取類型建立 Outpost 的端點。VPC 衍生自子網路。若要執行此命令,請以您自己的資訊取代 user input placeholders

aws s3outposts create-endpoint --outpost-id op-01ac5d28a6a232904 --subnet-id subnet-8c7a57c5 --security-group-id sg-ab19e0d1

下列 AWS CLI 範例使用客戶擁有的 IP 位址集區 (CoIP 集區) 存取類型為 Outpost 建立端點。若要執行此命令,請以您自己的資訊取代 user input placeholders

aws s3outposts create-endpoint --outpost-id op-01ac5d28a6a232904 --subnet-id subnet-8c7a57c5 --security-group-id sg-ab19e0d1 --access-type CustomerOwnedIp --customer-owned-ipv4-pool ipv4pool-coip-12345678901234567

如需如何使用適用於 Java 的 AWS SDK 為 S3 Outpost 建立端點的範例,請參閱《適用於 Java 的 AWS SDK 2.x 程式碼範例》中的 CreateOutpostsEndPoint.java