Getting started by using the Amazon CLI and SDK for Java
With Amazon S3 on Outposts, you can create S3 buckets on your Amazon Outposts and easily store and
retrieve objects on premises for applications that require local data access, local data
processing, and data residency. S3 on Outposts provides a new storage class, S3 Outposts
(OUTPOSTS
), which uses the Amazon S3 APIs, and is designed to store
data durably and redundantly across multiple devices and servers on your Amazon Outposts. You communicate with your Outpost bucket
by using an access point
and endpoint connection over a virtual private cloud (VPC). You can use the same APIs and
features on Outpost buckets as you do on Amazon S3 buckets, including access policies, encryption, and tagging.
You can use S3 on Outposts through the Amazon Web Services Management Console, Amazon Command Line Interface (Amazon CLI), Amazon SDKs, or REST API. For more information, see What is Amazon S3 on Outposts?
To get started with S3 on Outposts, you must create a bucket, an access point, and an endpoint. Then, you can upload objects to your bucket. The following examples show you how to get started with S3 on Outposts by using the Amazon CLI and SDK for Java. To get started by using the console, see Getting started by using the Amazon Web Services Management Console.
Topics
Step 1: Create a bucket
The following Amazon CLI and SDK for Java examples show you how to create an S3 on Outposts bucket.
Step 2: Create an access point
To access your Amazon S3 on Outposts bucket, you must create and configure an access point. These examples how you how to create an access point by using the Amazon CLI and the SDK for Java.
Access points simplify managing data access at
scale for shared datasets in Amazon S3. Access points are named network endpoints that are
attached to buckets that you can use to perform Amazon S3 object operations, such as
GetObject
and PutObject
. With S3 on Outposts, you must use access points to access any object in an Outposts bucket. Access
points support only virtual-host-style addressing.
Step 3: Create an endpoint
To route requests to an Amazon S3 on Outposts access point, you must create and configure an S3 on Outposts endpoint. In order to create an endpoint, you will need an active connection with your service link to your Outposts home region. Each virtual private cloud (VPC) on your Outpost can have one associated endpoint. For more information about endpoint quotas, see S3 on Outposts network requirements. You must create an endpoint to be able to access your Outposts buckets and perform object operations. For more information, see Endpoints.
These examples show you how to create an endpoint by using the Amazon CLI and the SDK for Java. For more information about the permissions required to create and manage endpoints, see Permissions for S3 on Outposts endpoints.
Step 4: Upload an object to an S3 on Outposts bucket
To upload an object, see Upload an object to an S3 on Outposts bucket.