# 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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.weap.io/storages/how-to-connect-your-aws-s3-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
