Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Configure your own buckets

Configure CARTO Self-Hosted to use your cloud storage buckets

This guide covers how to configure CARTO to use your cloud storage buckets. If you haven't created and configured them yet (CORS, IAM permissions), start with Object Storage prerequisites first.

Every CARTO Self-Hosted installation requires the following buckets:

Bucket
Required
Description
Example contents

Temp Bucket

Yes

Upload and import datasets into CARTO

.csv, .geojson, .zip

Assets Bucket

Yes

Stores map thumbnails and customization assets (logos, markers, etc.)

.png

Export Bucket

Optional

Export data from your data warehouse — create only if you use data export features

.csv, .json, .parquet

Bucket
Required
Config key
Description
Example contents

Import Bucket

Yes

workspaceImportsBucket

Upload and import datasets into CARTO

.csv, .geojson, .zip

Thumbnails Bucket

Yes

workspaceThumbnailsBucket

Stores map thumbnails and customization assets (logos, markers, etc.)

.png

Export Bucket

Optional

workspaceExportsBucket (BigQuery) / awsExportBucket (S3)

Export data from your data warehouse — create only if you use data export features

.csv, .json, .parquet


Configuration notes

Assets / Thumbnails bucket access

By default, all thumbnail objects are configured to be publicly accessible. This ensures that features like custom branding and map markers function correctly.

Kots

You can change this in the Admin Console using the "Assets bucket is Public" config.

Helm

To make thumbnails private, set in your customizations.yaml:

To maintain a private bucket while still enabling these features, configure your bucket with a hybrid access model:

  1. Allow public objects: The bucket policy must allow individual objects to be made public, even if the bucket itself is private by default.

  2. Enable fine-grained ACLs: Enable Access Control Lists (ACLs) so CARTO can set public-read permissions on specific thumbnail files.

  3. Disable server-side encryption: Bucket-level server-side encryption is often incompatible with public ACLs and must be disabled.

Export bucket provider requirements

Two warehouses require a specific provider, because they write the export file themselves. The rest work with any supported store, since CARTO reads the query result and writes the file:

Data Warehouse
Required Storage Provider
Why

BigQuery

Google Cloud Storage

EXPORT DATA writes to GCS only

Redshift

AWS S3

COPY and UNLOAD accept AWS S3 only

Snowflake, Oracle, PostgreSQL, Databricks

Any bucket CARTO supports — GCS, AWS S3, Azure Blob, or an S3-compatible store

CARTO writes the file

BigQuery exports: grant your connection identities

A BigQuery export runs an EXPORT DATA job that writes the result to the export bucket as the identity of the BigQuery connection, not as the CARTO service account. CARTO then reads the file back with its own service account. Both identities need access to the GCS export bucket:

  • The CARTO service account needs read/write access, as described in Data export bucket.

  • The identity of every BigQuery connection used for exports needs storage.objects.create and storage.objects.delete, for example through roles/storage.objectUser. BigQuery can rewrite an export file while writing it, so create alone is not enough.

Which identity to grant depends on how the connection authenticates:

Connection type
Identity that writes to the bucket
Where to find it

Service account

The service account of the connection

client_email in the JSON key used to create the connection

Workload Identity

The service account configured for Workload Identity

Your Workload Identity setup (Use Workload Identity in GCP)

Workload Identity Federation

The impersonated service account, or the federated identity when there is none

Your Workload Identity Federation setup. To cover every federated user, grant principalSet://iam.googleapis.com/projects/<project_number>/locations/global/workloadIdentityPools/<pool_id>/*

OAuth

The Google account of each user who runs an export

Grant a Google group that contains those users, or your domain (domain:<your_domain>)

Grant the role on the export bucket, for example:

CARTO stages BigQuery exports under the tmp/bq-export- prefix of the bucket. To limit the grant to that prefix, add an IAM condition: resource.name.startsWith("projects/_/buckets/<YOUR_EXPORTS_BUCKET>/objects/tmp/bq-export-").

If an identity is missing these permissions, the export job fails with Permission denied by warehouse, and the underlying error says that the identity does not have storage.objects.create access (or storage.objects.delete access) to the export bucket.


Bucket configuration

Kots

In the Admin Console → Config, select your preferred storage provider:

  1. Create the following buckets in GCS:

    • Assets Bucket

    • Temp Bucket

    • Optionally, create the Data export Bucket if you plan to export data from your data warehouse.

Custom markers won't work unless the Assets bucket is public.

  1. Configure CORS on the Temp and Assets buckets:

How do I set up CORS? Check the provider docs.

  1. Ensure the identity used to access your GCS buckets has the roles/storage.admin role over the buckets.

  2. In the Admin Console, provide the Project ID of the GCP project where your GCS buckets are located.

  3. Specify the names of the GCS buckets.

  1. Create the following buckets in your AWS S3 account:

    • Assets Bucket

    • Temp Bucket

    • Data export Bucket (optional)

Custom markers won't work unless the Assets bucket is public.

  1. Configure CORS on the Temp and Assets buckets:

How do I set up CORS? Check the provider docs.

  1. Provide an Access Key ID and Secret Access Key with read/write access over the buckets.

  2. Configure the region where the buckets are located. All buckets must be in the same AWS region.

  3. Specify the names of the AWS buckets.

For Redshift exports — create an IAM role with the following settings:

Trusted entity type: Custom trust policy — replace <your_aws_user_arn>:

Add permissions (omit export bucket if not needed):

Specify the ARN of the role and the name of the exports bucket in the CARTO Self-Hosted configuration.

In case you'd like to enable importing data to Redshift, it's not mandatory to provide the exports bucket's name, but you'll have to follow these instructions once the CARTO Self-Hosted deployment is ready.

For Snowflake exports on AWS S3 — create an IAM role with the same trust policy and the following permissions policy:

Specify the ARN of the role and the data export bucket name in the CARTO Self-Hosted configuration.

  1. Create the following containers in your Azure Blob storage account:

    • Assets Bucket

    • Temp Bucket

    • Data export Bucket (optional)

Custom markers won't work unless the Assets bucket is public.

  1. Configure CORS on the Temp and Assets buckets at the storage account level:

If you're using the Azure Portal, these fields map directly to the CORS blade's columns: Allowed origins, Allowed methods, Allowed headers, Exposed headers, and Max age. Enter the values as plain comma-separated names, without the JSON quotes or brackets — pasted quotes become part of the stored header names, and Azure will then silently reject upload (PUT) preflights while GET keeps working. How do I set up CORS? Check the provider docs.

  1. Provide an Access Key from the storage account's Security properties.

  2. Specify the names of the containers.

Select AWS S3 or S3-compatible as the storage provider and follow the AWS S3 steps above for buckets, CORS, and access keys. Then fill in:

Field
Value

S3-compatible endpoint

Your endpoint, e.g. https://objects.example.com

Use path-style addressing

Enable unless your provider supports virtual-hosted URLs

S3-compatible external URL

Only if browsers reach the store at a different URL than CARTO's services do

Leave the region as your provider documents it, or us-east-1 if it doesn't use regions.

Helm

Add the following lines to your customizations.yaml and replace the <values> with your own settings:

thumbnailsBucketExternalURL can be https://storage.googleapis.com/<thumbnails_bucket_name>/ for public access or https://storage.cloud.google.com/<thumbnails_bucket_name>/ for authenticated access.

Select a Service Account that will be used by CARTO to interact with the buckets:

  • Using a custom Service Account for both buckets and CARTO services (required for Workload Identity).

  • Using a dedicated Service Account only for the buckets.

Grant the selected Service Account the role roles/iam.serviceAccountTokenCreator at the Service Account permissions level (not project level).

Grant the selected Service Account the role roles/storage.admin on the buckets.

[OPTIONAL] Pass GCP credentials as secrets — only if using a dedicated Service Account for buckets:

Option 1 — automatically create the secret:

appSecrets.googleCloudStorageServiceAccountKey.value should be in plain text, preserving multiline format.

Option 2 — using an existing secret:

Add the following lines to your customizations.yaml and replace the <values> with your own settings:

thumbnailsBucketExternalURL should be https://<thumbnails_bucket_name>.s3.amazonaws.com/

Pass your AWS credentials as secrets:

Option 1 — automatically create a secret:

appSecrets.awsAccessKeyId.value and appSecrets.awsAccessKeySecret.value should be in plain text.

Option 2 — using an existing secret:

Use the same namespace where you are installing the Helm chart.

Add the following lines to your customizations.yaml and replace the <values> with your own settings:

thumbnailsBucketExternalURL should be https://<storage_account_name>.blob.core.windows.net/<thumbnails_bucket_name>/. This is required regardless of workspaceThumbnailsPublic — it's used to allow the frontend to load images from that origin, not to grant bucket access.

Pass your Access Key as a secret:

Option 1 — automatically create the secret:

appSecrets.azureStorageAccessKey.value should be in plain text.

Option 2 — using an existing secret:

Configure the buckets and credentials exactly as in the AWS S3 tab (storageProvider: "s3"), then add your endpoint:

  • s3Endpoint — where CARTO's services reach your store. Leave empty for AWS S3.

  • s3ForcePathStyle — S3 supports two URL shapes: virtual-hosted (https://bucket.host/key) and path-style (https://host/bucket/key). Most S3-compatible providers serve a single hostname and need path-style, which requires no wildcard DNS. Leave false for AWS S3.

  • s3ExternalUrl — browsers upload and download objects directly, so they must reach the store too. Set this only when the browser-facing URL differs from the one your cluster uses, for example an in-cluster service name internally and a public hostname externally.

Set thumbnailsBucketExternalURL to the browser-facing URL of the thumbnails bucket, following your provider's URL shape.


Data export bucket

Kots

When your export bucket is in AWS S3, Redshift and Snowflake exports need an IAM role. Refer to the Redshift and Snowflake configuration steps in the AWS S3 tab above, then specify the ARN and bucket name in the Admin Console.

When your export bucket is in GCS, BigQuery exports also need a grant for each BigQuery connection. See BigQuery exports: grant your connection identities.

Helm

BigQuery

  1. Grant read/write permissions to the CARTO service account on the GCS export bucket.

  2. Grant roles/storage.objectUser on the export bucket to the identity of each BigQuery connection. See BigQuery exports: grant your connection identities.

  3. Add to your customizations.yaml:

Redshift

Redshift requires an AWS S3 bucket for data exports, because its COPY and UNLOAD commands accept AWS S3 only. Create an IAM user with programmatic credentials if not already done.

If you already configured the Import and Thumbnails buckets using AWS S3, you can reuse the same IAM user.

Create an IAM role with the following settings:

  1. Trusted entity type: Custom trust policy — replace <your_aws_user_arn>:

  1. Add permissions policy — replace <your_aws_s3_bucket_name>:

  1. Update your customizations.yaml:

Pass your AWS credentials as secrets:

Option 1 — automatically create the secret:

appSecrets.exportAwsSecretAccessKey.value and appSecrets.exportAwsAccessKeyId.value should be in plain text, preserving the multiline and correctly tabulated.

Option 2 — using an existing secret:

Amazon RDS for PostgreSQL

The export bucket for Amazon RDS can be configured from the CARTO platform UI after deployment. See Configuring S3 bucket integration for Amazon RDS for PostgreSQL exports.

Last updated

Was this helpful?