# Configuring S3 Bucket integration for RDS for PostgreSQL Exports in Builder

If you navigate to **Settings > Advanced Settings > Integrations**, you'll find a setting related to configuring your own S3 bucket to export data from RDS for PostgreSQL data sources in Builder.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-46464deb96a1a04c30f4b8fc0d4d06569f734d35%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

## When is this needed?

Utilize this integration when you need to export geospatial data from your RDS for PostgreSQL database in Builder. CARTO incorporates an S3 bucket as a necessary intermediary step, adhering to the requirements of RDS for PostgreSQL.

{% hint style="warning" %}
**Requirements for Integration:**

1. **Private S3 Bucket**: Before you can configure this integration, create an S3 private bucket in AWS.
   * **Best Practice**: We recommend setting up a new S3 bucket exclusively for this purpose, ensuring better organization and enhanced security.
2. **AWS S3 Extension Setup**: The integration also depends on the AWS S3 extension being pre-installed in your PostgreSQL environment.
   * **Need Help?** If this step is not yet completed, or you need assistance with it, please refer to the [official AWS documentation](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/postgresql-s3-export.html) for detailed guidance.
     {% endhint %}

## Setting up your S3 bucket integration

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-fba9914b6273ba64a9610d0ca92c886d0e5f7467%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Start by clicking '+ Add' to initiate the setup. For your S3 private bucket, you'll need to provide the following four parameters:

* **Bucket Name**: Enter the name of your S3 bucket for data export.
* **Bucket Region**: Specify your S3 bucket's region.
* **Access Key ID**: Provide your AWS account's Access Key ID.
* **Access Key Secret**: Enter the corresponding Access Key Secret.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-fc88e6cc53cd356ec5f40c6c0df4ce7351571852%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

Once you've added the required fields, click on "**Validate and Save".** This will established the S3 bucket integration to enable RDS for PostgreSQL exports.

<figure><img src="https://3029946802-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FybPdpmLltPkzGFvz7m8A%2Fuploads%2Fgit-blob-ad09ad4a34d1d4cd1900fc24845a39c3b3ea4d8f%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

CARTO will validate your configuration at this point. If we're able to use your S3 bucket to export files from RDS for PostgreSQL, we'll take you back to your Settings page.

{% hint style="success" %}
From this point, CARTO will always use your S3 bucket when exporting sources from RDS for PostgreSQL, and the export viewport data feature in Builder will be enabled if it wasn't before
{% endhint %}

You can edit or remove this integration at any time.


---

# 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.carto.com/carto-user-manual/settings/advanced-settings/configuring-s3-bucket-integration-for-rds-for-postgresql-exports-in-builder.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.
