The Core package contains the open-source modules of the CARTO Analytics Toolbox for Redshift. This guide walks you through installing the Core package in your Redshift database.
Prerequisites
Python: 3.10+ (tested with 3.10-3.13)
AWS: Account with Lambda and IAM permissions
Redshift: Cluster with admin access
Quick Start
# 1. Download and extract the Core packagecurl-L-ocarto-at-core-redshift-latest.zip \https://storage.googleapis.com/carto-analytics-toolbox-core/redshift/carto-analytics-toolbox-core-redshift-latest.zipunzipcarto-at-core-redshift-latest.zip# 2. Navigate to package directorycdcarto-at-core-redshift-*# 3. Setup Python environmentpython3-mvenv.venv&&source.venv/bin/activatepipinstall-rscripts/requirements.txt# 4. Run interactive installerpythonscripts/install.py
On macOS, browsers may auto-extract the ZIP. If the folder already exists, skip the unzip step.
If you have a previously installed version of the Analytics Toolbox, you can check the installed version by running SELECT carto.VERSION_CORE().
Installation Methods
Option 1: Interactive Installation (Recommended)
The installer guides you through configuration with prompts:
For automated deployments (CI/CD, scripts), use the --non-interactive flag:
The --non-interactive (or -y) flag is required to skip prompts. Without it, the installer will always prompt interactively, even if all parameters are provided via command line.
Get Help
See all available options:
CLI Parameters Reference
AWS Authentication (Choose one method)
Method 1: AWS Profile (Recommended)
Method 2: Explicit Credentials
Method 3: IAM Role (No parameters needed - automatic on EC2/ECS)
Method 4: Assume Role (Cross-account)
AWS Configuration
Parameter
Description
--aws-region TEXT
AWS region (default: us-east-1)
Lambda Configuration
Parameter
Description
--rs-lambda-prefix TEXT
Lambda name prefix (default: carto-at-). Example: mycompany- creates functions named mycompany-function_name
--rs-lambda-execution-role TEXT
Existing Lambda execution role ARN (optional). If not provided, will auto-create during Phase 0
You have successfully installed the CARTO Analytics Toolbox Core in your Redshift database.
Now you can start using the functions from the Core modules in the SQL reference.
Upgrade
To upgrade your Analytics Toolbox Core installation, download the latest package and run the installer again with the same configuration. The new functions and procedures will replace their previous versions.