Enable Redshift imports
To import data into Redshift through CARTO Self-Hosted, follow these step-by-step instructions.
Create an AWS IAM user with programmatic access. Take note of the user's ARN, Key ID and Key secret.
Create an AWS S3 Bucket:
ACLs should be allowed.
If server-side encryption is enabled, the user must be granted with permissions over the KMS key following the AWS documentation.
Create an AWS IAM role with the following settings:
Trusted entity type:
Custom trust policy.Custom trust policy: Make sure to replace
<your_aws_user_arn>.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": { "AWS": "<your_aws_user_arn>" }, "Action": [ "sts:AssumeRole", "sts:TagSession" ] } ] }Add permissions: Create a new permissions' policy, replacing
<your_aws_s3_bucket_name>.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": "s3:ListBucket", "Resource": "arn:aws:s3:::<your_aws_s3_bucket_name>" }, { "Effect": "Allow", "Action": "s3:*Object", "Resource": "arn:aws:s3:::<your_aws_s3_bucket_name>/*" } ] }Configure your CARTO Self-Hosted deployment:\
Add the following lines to your customer.env file:
IMPORT_AWS_CUSTOM_BUCKET_ROLE_ARN='<AWS_CUSTOM_ROLE_ARN>' IMPORT_AWS_ACCESS_KEY_ID='<AWS_ACCESS_KEY_ID>' IMPORT_AWS_SECRET_ACCESS_KEY='<AWS_ACCESS_KEY_SECRET>'Update your installation to apply the changes.
Configure Redshift Integration in CARTO:
Log into your CARTO Self-Hosted, go to
Data Explorer > Connections > Add new connectionand create a new Redshift connection.Then go to
Settings > Advanced > Integrations > Redshift > New, introduce your S3 Bucket name and region and copy the policy generated.From the AWS console, go to your
S3 > Bucket > Permissions > Bucket policyand paste the policy obtained in the previous step in the policy editor.Go back to the CARTO Self-Hosted (Redshift integration page) and check the
I have already added the S3 bucket policybox and click on theValidate and save button.Go to
Data Exporer > Import data > Redshift connectionand you should be able to import a local dataset to Redshift.
Import Data to Redshift:
Go to Data Explorer > Import data > Redshift connection. Now, you should be able to import a local dataset to Redshift! 🎉
Last updated
Was this helpful?
