Creating an access point - Amazon Simple Storage Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Creating an access point

An access point is associated with exactly one Amazon S3 bucket. If you want to use a bucket in your Amazon Web Services account, you must first create a bucket. For more information about creating buckets, see Creating, configuring, and working with Amazon S3 buckets.

You can also create a cross-account access point that's associated with a bucket in another Amazon Web Services account, as long as you know the bucket name and the bucket owner's account ID. However, creating cross-account access points doesn't grant you access to data in the bucket until you are granted permissions from the bucket owner. The bucket owner must grant the access point owner's account (your account) access to the bucket through the bucket policy. For more information, see Granting permissions for cross-account access points.

By default, you can create up to 10,000 access points per Region for each of your Amazon Web Services accounts. If you need more than 10,000 access points for a single account in a single Region, you can request a service quota increase. For more information about service quotas and requesting an increase, see Amazon Service Quotas in the Amazon Web Services General Reference.

The following examples demonstrate how to create an access point with the Amazon CLI and the S3 console. For more information about how to create access points by using the REST API, see CreateAccessPoint in the Amazon Simple Storage Service API Reference.

To create an access point
  1. Sign in to the Amazon Web Services Management Console and open the Amazon S3 console at https://console.amazonaws.cn/s3/.

  2. In the navigation bar on the top of the page, choose the name of the currently displayed Amazon Web Services Region. Next, choose the Region in which you want to create an access point.

  3. In the left navigation pane, choose Access Points.

  4. On the Access Points page, choose Create access point.

  5. In the Access point name field, enter the name for the access point. For more information about naming access points, see Rules for naming Amazon S3 access points.

  6. For Bucket name, specify the S3 bucket that you want to use with the access point.

    To use a bucket in your account, choose Choose a bucket in this account, and enter or browse for the bucket name.

    To use a bucket in a different Amazon Web Services account, choose Specify a bucket in another account, and enter the Amazon Web Services account ID and name of the bucket.

    Note

    If you're using a bucket in a different Amazon Web Services account, the bucket owner must update the bucket policy to authorize requests from the access point. For an example bucket policy, see Granting permissions for cross-account access points.

  7. Choose a Network origin. If you choose Virtual private cloud (VPC), enter the VPC ID that you want to use with the access point.

    For more information about network origins for access points, see Creating access points restricted to a virtual private cloud.

  8. Under Block Public Access settings for this Access Point, select the block public access settings that you want to apply to the access point. All block public access settings are enabled by default for new access points. We recommend that you keep all settings enabled unless you know that you have a specific need to disable any of them.

    Note

    After you create an access point, you can't change its block public access settings.

    For more information about using Amazon S3 Block Public Access with access points, see Managing public access to access points.

  9. (Optional) Under Access Point policy - optional, specify the access point policy. Before you save your policy, make sure to resolve any security warnings, errors, general warnings, and suggestions. For more information about specifying an access point policy, see Access point policy examples.

  10. Choose Create access point.

The following example command creates an access point named example-ap for the bucket amzn-s3-demo-bucket in the account 111122223333. To create the access point, you send a request to Amazon S3 that specifies the following:

  • The access point name. For information about naming rules, see Rules for naming Amazon S3 access points.

  • The name of the bucket that you want to associate the access point with.

  • The account ID for the Amazon Web Services account that owns the access point.

aws s3control create-access-point --name example-ap --account-id 111122223333 --bucket amzn-s3-demo-bucket

When you're creating an access point by using a bucket in a different Amazon Web Services account, include the --bucket-account-id parameter. The following example command creates an access point in the Amazon Web Services account 111122223333, using the bucket amzn-s3-demo-bucket2, which is in the Amazon Web Services account 444455556666.

aws s3control create-access-point --name example-ap --account-id 111122223333 --bucket amzn-s3-demo-bucket --bucket-account-id 444455556666