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:
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
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.
You can change this in the Admin Console using the "Assets bucket is Public" config.

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:
Allow public objects: The bucket policy must allow individual objects to be made public, even if the bucket itself is private by default.
Enable fine-grained ACLs: Enable Access Control Lists (ACLs) so CARTO can set
public-readpermissions on specific thumbnail files.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:
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.createandstorage.objects.delete, for example throughroles/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:
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-").
Bucket configuration
In the Admin Console → Config, select your preferred storage provider:

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.
Configure CORS on the Temp and Assets buckets:
Ensure the identity used to access your GCS buckets has the
roles/storage.adminrole over the buckets.In the Admin Console, provide the Project ID of the GCP project where your GCS buckets are located.
Specify the names of the GCS buckets.
Create the following buckets in your AWS S3 account:
Assets Bucket
Temp Bucket
Data export Bucket (optional)
Configure CORS on the Temp and Assets buckets:
Provide an Access Key ID and Secret Access Key with read/write access over the buckets.
Configure the region where the buckets are located. All buckets must be in the same AWS region.
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.
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.
Create the following containers in your Azure Blob storage account:
Assets Bucket
Temp Bucket
Data export Bucket (optional)
Configure CORS on the Temp and Assets buckets at the storage account level:
Provide an Access Key from the storage account's Security properties.
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:
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.
Add the following lines to your customizations.yaml and replace the <values> with your own settings:
thumbnailsBucketExternalURLcan behttps://storage.googleapis.com/<thumbnails_bucket_name>/for public access orhttps://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.valueshould 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:
thumbnailsBucketExternalURLshould behttps://<thumbnails_bucket_name>.s3.amazonaws.com/
Pass your AWS credentials as secrets:
Option 1 — automatically create a secret:
appSecrets.awsAccessKeyId.valueandappSecrets.awsAccessKeySecret.valueshould 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:
thumbnailsBucketExternalURLshould behttps://<storage_account_name>.blob.core.windows.net/<thumbnails_bucket_name>/. This is required regardless ofworkspaceThumbnailsPublic— 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.valueshould 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. Leavefalsefor 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
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.
BigQuery
Grant read/write permissions to the CARTO service account on the GCS export bucket.
Grant
roles/storage.objectUseron the export bucket to the identity of each BigQuery connection. See BigQuery exports: grant your connection identities.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.
Create an IAM role with the following settings:
Trusted entity type:
Custom trust policy— replace<your_aws_user_arn>:
Add permissions policy — replace
<your_aws_s3_bucket_name>:
Update your customizations.yaml:
Pass your AWS credentials as secrets:
Option 1 — automatically create the secret:
appSecrets.exportAwsSecretAccessKey.valueandappSecrets.exportAwsAccessKeyId.valueshould 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?
