> For the complete documentation index, see [llms.txt](https://docs.weap.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.weap.io/storages/how-to-connect-your-aws-s3-storage.md).

# How to connect your AWS S3 storage

Connecting your AWS S3 storage is very simple and quick.

### 1. Create a new S3 bucket

Log in into your AWS console, open the S3 service and click the **`Create Bucket`** button. Give a name to your bucket and select a region. In our case we used **`weap-backups`** as the name of the bucket and the region eu-central-1.&#x20;

The other options are ok like they are. The option `Block all public access` should be checked.

Scroll at the bottom of the page and click the button **`Create Bucket`**.

![](/files/-MOXDWgWJMjepRvgC-LW)

### 2. Create a new IAM user

Open the IAM service, go to the users section and click the button **`Add user`**

![](/files/-MOXFjGGORx_DSUX-7VR)

Give a name to the user, check the option **`Programmatic access`** and click the button **`Next: Permissions`**.

![](/files/-MOXG-iIVB2QXgh2K5KL)

Skip the permissions page by clicking the button **`Next: Tags`**. We will not add any tag. Click the button **`Next: Review`**. Finally, click the button **`Create user`**. Save the Access key ID and Secret access key because are visible only once.

![](/files/-MOXHgJFK7Gvi4YlhzVr)

### 3. Attach S3 permissions to the IAM user

Again in the IAM service, search for the user you just created and open it. On the user page, click **`Add inline policy`**.

![](/files/-MOXJHnRpcF7cVxSjSWt)

Choose the **`JSON`** editor and paste the policy below.

{% hint style="warning" %}
Replace **`weap-backups`** with the name of the bucket you created at step 1 (if you used a different name).
{% endhint %}

```
{
    "Version": "2012-10-17",
         "Statement": [
             {
                 "Effect": "Allow",
                 "Action": [
                     "s3:*"
                 ],
                 "Resource": [
                   "arn:aws:s3:::weap-backups/*",
                   "arn:aws:s3:::weap-backups"
                 ]
             }
         ]
 }
```

Click the button **`Review policy`** and give it an intuitive name. Next, click the button **`Create policy`**.

### 4. Add the storage to Weap.io

Open your Weap.io dashboard and go to the **`Storages`** settings. Click the **`Add storage`** button and fill the form with the details from the previous steps.

![](/files/-MOXLt58URbK7okDk3m-)

Congratulations! Your S3 storage is now connected to Weap.io and can be used to store your [Database](https://weap.io/database-backups/mysql) & [File](https://weap.io/file-backups) backups.
