AWS Redshift
Use this guide to configure AWS Redshift as a storage in OWOX Data Marts. The steps below walk you through creating a storage record, completing authentication, and finishing validation.
1. Go to the Storages Page and choose Storage Type
Section titled â1. Go to the Storages Page and choose Storage TypeâIn the OWOX Data Marts web application, navigate to Storages from the main navigation pane and click + New Storage. Click AWS Redshift to create a new Storage configuration.
Upon selecting the + New Storage button and specifying the desired storage type, a Storage entry is created. You can create Data Mart entities and model a data structure for your project prior to configuring the Storage. Note that Data Mart cannot be validated or published until the associated Storage is fully configured.

2. Add title and AWS region
Section titled â2. Add title and AWS regionâGive the storage configuration a clear title, for example: AWS Redshift Dev Database.
Choose the AWS region where your Redshift cluster or workgroup is located:
- Examples:
us-east-1,eu-west-1,ap-southeast-1 - You can find your region in the AWS Redshift Console in the top right corner or url.


Choose Connection Type
Section titled âChoose Connection TypeâAWS Redshift supports two deployment types (one is required). Itâs based on your use case and pricing model.
Option 1: Serverless
Section titled âOption 1: ServerlessâWorkgroup Name:
- Go to AWS Redshift Serverless Console
- Navigate to Workgroup configuration
- Copy the workgroup name (e.g.,
defaultormy-workgroup)

Option 2: Provisioned
Section titled âOption 2: ProvisionedâCluster Identifier:
- Go to AWS Redshift Provisioned Clusters
- Find your cluster in the list
- Copy the Cluster identifier (e.g.,
redshift-cluster-1)

Enter Database Name
Section titled âEnter Database Nameâ- This is the name of the database within your Redshift cluster
- Default Redshift database is typically
devordefaultdb - You can find this in the AWS Redshift Query Editor

Authentication
Section titled âAuthenticationâOWOX Data Marts uses AWS IAM credentials to authenticate with Redshift Data API.
Access Key ID and Secret Access Key
Section titled âAccess Key ID and Secret Access KeyâHow to create IAM credentials:
- Go to AWS IAM Console
- Navigate to Users â Select your user or create a new one
- Click Create access key
- Choose Application running outside AWS
- Copy the Access key and Secret access key or download .csv file with access keys.
Security Best Practice:
- Never share your secret access key
- Store it securely (use AWS Secrets Manager or similar)
- Rotate keys regularly
- Use IAM policies to grant minimum required permissions



Required IAM Permissions
Section titled âRequired IAM PermissionsâYour IAM user or role needs the following permissions:
For Serverless:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "redshift-data:ExecuteStatement", "redshift-data:DescribeStatement", "redshift-data:GetStatementResult", "redshift-serverless:GetCredentials" ], "Resource": "*" } ]}For Provisioned Cluster:
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Action": [ "redshift-data:ExecuteStatement", "redshift-data:DescribeStatement", "redshift-data:GetStatementResult", "redshift:GetClusterCredentials" ], "Resource": "*" } ]}Tip: You can attach the AWS managed policy
AmazonRedshiftDataFullAccessfor quick setup, but consider using a custom policy with minimal permissions for production. You can set permissions to certain database and tables for more security. Example:"Resource": "arn:aws:redshift:us-east-1:123456789012"

3. Grand Permissions to create schemas in database
Section titled â3. Grand Permissions to create schemas in databaseâIf you want to create schemas in your database (to upload data from a connector-based data mart), you need to grant permissions to the IAM user who will upload the data.
GRANT CREATE ON DATABASE dev TO "IAM:<USERNAME_IN_IAM>";Tip: You can find your username in IAM in the AWS IAM Console in the Users tab.
4. Finalize Setup
Section titled â4. Finalize SetupâReview your entries and click Save to add the Storage configuration, or Cancel to exit without saving.
Once saved, OWOX Data Marts will validate the connection to ensure all credentials are correct.

Next Steps
Section titled âNext StepsâAfter configuring your AWS Redshift storage:
- Create a Data Mart that uses this storage
- Define your data structure with Redshift-specific field types
- Configure a Connector to load data into Redshift
- Run reports and export data from your Redshift tables
Troubleshooting
Section titled âTroubleshootingâConnection Failed
Section titled âConnection Failedâ- Verify your AWS region is correct
- Ensure the database name exists in your Redshift cluster/workgroup
- Check that workgroup name or cluster identifier is spelled correctly
- Verify your Access Key ID and Secret Access Key are correct
Permission Denied
Section titled âPermission DeniedâMake sure your IAM user has the required permissions listed above. You can test permissions by running:
aws redshift-data execute-statement \ --region us-east-1 \ --database dev \ --workgroup-name my-workgroup \ --sql "SELECT 1"âSchema does not existâ Error
Section titled ââSchema does not existâ Errorâ- Schema is now configured in the Connector setup (Step 5), not in Storage
- Make sure youâve entered a schema name when creating the connector
- The schema will be automatically created if it doesnât exist
Query Timeout
Section titled âQuery Timeoutâ- Redshift Data API has a 5-minute query timeout
- For large data loads, consider breaking them into smaller batches
- Check your warehouse/cluster size and scaling settings
Access Denied to Database
Section titled âAccess Denied to DatabaseâEnsure your Redshift database allows access from the IAM credentials:
For Serverless:
GRANT ALL ON DATABASE dev TO "IAM:<USERNAME_IN_IAM>";For Provisioned:
GRANT ALL ON DATABASE dev TO "IAM:<USERNAME_IN_IAM>";