S3 on Outposts アクセスポイントの作成 - Amazon Simple Storage Service

S3 on Outposts アクセスポイントの作成

Amazon S3 on Outposts バケットにアクセスするには、アクセスポイントを作成して設定する必要があります。

アクセスポイントは、Amazon S3 の共有データセットへの大規模なデータアクセスの管理を簡素化します。アクセスポイントは、バケットにアタッチされた名前付きのネットワークエンドポイントで、Amazon S3 オブジェクトのオペレーション (GetObjectPutObject など) を実行するために使用できます。S3 on Outposts では、Outposts バケット内の任意のオブジェクトにアクセスするにはアクセスポイントを使用する必要があります。アクセスポイントでは、仮想ホスト形式のアドレス指定のみがサポートされます。

以下の例は、AWS Management Console、AWS Command Line Interface (AWS CLI)、および AWS SDK for Java を使用して、S3 on Outposts アクセスポイントを作成する方法を示しています。

注記

Outposts バケットを作成する AWS アカウント がそのバケットを所有し、そのバケットにアクセスポイントを割り当てることができる唯一のアカウントです。

  1. https://console.aws.amazon.com/s3/ で Amazon S3 コンソールを開きます。

  2. 左のナビゲーションペインで、[Outposts buckets] (Outposts バケット) を選択します。

  3. Outposts アクセスポイントを作成する Outposts バケットを選択します。

  4. [Outposts アクセスポイント] タブを選択します。

  5. [Outposts access points] (Outposts アクセスポイント) セクションで、[Create Outposts access point] (Outposts アクセスポイントの作成) を選択します。

  6. [Outposts access point settings] (Outposts アクセスポイントの設定) セクションで、アクセスポイントの名前を入力し、アクセスポイントの仮想プライベートクラウド (VPC) を選択します。

  7. アクセスポイントのポリシーを追加する場合は、[Outposts access point policy] (Outposts アクセスポイントポリシー) セクションに入力します。

    詳細については、「S3 on Outposts で IAM を設定する」を参照してください。

次の AWS CLI の例では、Outposts バケットのアクセスポイントを作成します。このコマンドを実行するには、user input placeholders をユーザー自身の情報に置き換えます。

aws s3control create-access-point --account-id 123456789012 --name example-outposts-access-point --bucket "arn:aws:s3-outposts:region:123456789012:outpost/op-01ac5d28a6a232904/bucket/example-outposts-bucket" --vpc-configuration VpcId=example-vpc-12345

次の SDK for Java の例では、Outposts バケットのアクセスポイントを作成します。この例を実行するには、user input placeholders をユーザー自身の情報に置き換えます。

import com.amazonaws.services.s3control.model.*; public String createAccessPoint(String bucketArn, String accessPointName) { CreateAccessPointRequest reqCreateAP = new CreateAccessPointRequest() .withAccountId(AccountId) .withBucket(bucketArn) .withName(accessPointName) .withVpcConfiguration(new VpcConfiguration().withVpcId("vpc-12345")); CreateAccessPointResult respCreateAP = s3ControlClient.createAccessPoint(reqCreateAP); System.out.printf("CreateAccessPoint Response: %s%n", respCreateAP.toString()); return respCreateAP.getAccessPointArn(); }