> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up an Amazon S3 bucket

> Step-by-step guide to creating and configuring an Amazon S3 bucket, including permissions and access keys, ready for PlayFab event archiving.

This article describes how to set up an Amazon S3 bucket so that you can archive your PlayFab events to it.

## Setting up Amazon S3 bucket

Once you create an Amazon account:

1. Navigate to **Services**.
2. Select **S3**.

<img src="https://mintcdn.com/microsoft-4404708b/68AB2fedpk3M7e-n/images/playfab/data-analytics/legacy/tutorials/select-amazon-s3.png?fit=max&auto=format&n=68AB2fedpk3M7e-n&q=85&s=338854ecf6a1efe3a7a2d762e5b7ba09" alt="Select Amazon S3" width="612" height="558" data-path="images/playfab/data-analytics/legacy/tutorials/select-amazon-s3.png" />

* The **S3** page contains an overview of all your buckets.
* Select the **Create bucket** button to create a new bucket.

<img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=f0e6bb170efbe1975e8cb3a29ed8c7eb" alt="Amazon S3 - Create bucket" width="490" height="503" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket.png" />\
To create your new S3 bucket, you must go through a four-step wizard:

1. Assign a unique, DNS-compliant **Bucket name** for your bucket. Remember this name, you'll need it when configuring your PlayFab event archiving.
2. When you're done, select the **Next** button.

<img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-enter-bucket-name.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=db59f403967b46ae1142c10dc3677db0" alt="Amazon S3 - Create bucket - enter bucket name" width="698" height="795" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-enter-bucket-name.png" />

You'll be offered the option of adding **Versioning**, **Logging**, and **Tags** for your **Bucket**.

1. Select the **Next** button when you're done.

<img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-add-versioning.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=d7903240a3d8b9b3f4595aeea47d62a5" alt="Amazon S3 - Create bucket - add versioning" width="694" height="795" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-add-versioning.png" />

1. During the step shown below, make sure that you check the **Read/Write** boxes for access to objects.
2. Select the **Next** button when you're done, as shown below.

<img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-enable-read-write.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=6bd528084d2fe247739c7ecdf774c320" alt="Amazon S3 - Create bucket - enable read/write" width="693" height="797" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-enable-read-write.png" />

1. In this last step, double-check your settings, and select the **Create bucket** button, as shown below.

<img src="https://mintcdn.com/microsoft-4404708b/MjJ0-cTsb1bpaMcX/images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-check-settings.png?fit=max&auto=format&n=MjJ0-cTsb1bpaMcX&q=85&s=c32ea61496cd9c8ea23fd7bd98d8d190" alt="Amazon S3 - Create bucket - check settings" width="689" height="788" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-create-bucket-check-settings.png" />

## Configuring Amazon access

In order to archive events, you will need to give PlayFab access to the bucket on your behalf. This is done with an Access Key.

1. Double-check that you have your newly created bucket in the list of **S3** services.
2. Select your account **Name** in the top right corner.
3. Then select **My Security Credentials**, as shown in the drop-down menu below.

<img src="https://mintcdn.com/microsoft-4404708b/68AB2fedpk3M7e-n/images/playfab/data-analytics/legacy/tutorials/amazon-s3-open-my-security-credentials.png?fit=max&auto=format&n=68AB2fedpk3M7e-n&q=85&s=3560f9bc536933d959eddb4367e9abfe" alt="Amazon S3 - Open My Security Credentials" width="1003" height="423" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-open-my-security-credentials.png" />

* Locate the **Access Key** list.
* Select the **Create New Access Key** button.

<img src="https://mintcdn.com/microsoft-4404708b/68AB2fedpk3M7e-n/images/playfab/data-analytics/legacy/tutorials/amazon-s3-security-credentials-open-create-access-key.png?fit=max&auto=format&n=68AB2fedpk3M7e-n&q=85&s=28fc8f8c19ab57484fd339850e5b0e7a" alt="Amazon S3 - Security Credentials - Open Create Access Key" width="614" height="551" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-security-credentials-open-create-access-key.png" />

1. Expand the **Access Key** data.
2. Save the **Access Key ID**.
3. Save the **Secret Access Key**. You'll need both keys when configuring your PlayFab Event archiving.
4. Select the **Close** button.

<img src="https://mintcdn.com/microsoft-4404708b/68AB2fedpk3M7e-n/images/playfab/data-analytics/legacy/tutorials/amazon-s3-security-credentials-save-access-key-data.png?fit=max&auto=format&n=68AB2fedpk3M7e-n&q=85&s=48420e0359549e8c0c53f8a41523880f" alt="Amazon S3 - Save Access Key data" width="790" height="400" data-path="images/playfab/data-analytics/legacy/tutorials/amazon-s3-security-credentials-save-access-key-data.png" />


## Related topics

- [S3 Event Archiving](/services/playfab/data-analytics/legacy/s3-event-archiving.md)
- [Data Connections quickstart](/services/playfab/data-analytics/export-data/data-connection-quickstart.md)
- [Data Connections - Overview](/services/playfab/data-analytics/export-data/data-connection-overview.md)
- [What is PlayFab?](/services/playfab/get-started/what-is-playfab.md)
- [Artifact](/services/playfab/api-references/events/data-types/artifact.md)
