Why Choose Script Setup?
Speed & Reliability
15-minute setup with automated configuration and built-in best practices
Optimized Performance
Pre-configured settings for warehouse sizing, scaling, and security
Reduced Errors
Automated configuration eliminates common manual setup mistakes
Future-Proof
Latest best practices included with regular script updates
Prerequisites
Before running the script, ensure you have:1
Required Access
Snowflake Admin
ACCOUNTADMIN role access in SnowflakeRequired for creating users, roles, and warehouses
Network Access
IP Whitelist configured for Elementum accessSee IP addresses in CloudLink Overview
2
Data Requirements
Table Preparation
Unique identifiers on all tables to be integratedEach table must have a primary key or unique key column
Access Policy
Organization domain will be automatically whitelistedFormat:
[your-org].elementum.io
What the Script Does
The automated script performs these essential configuration steps:- Security Setup
- Infrastructure Setup
- Advanced Features
1
Create Elementum Role
Creates a dedicated
ELEMENTUM
role with minimal required permissions2
Create Service User
Sets up
ELEMENTUM
user account with secure authentication3
Configure Permissions
Grants only necessary permissions following principle of least privilege
Step-by-Step Setup
1
Download the Setup Script
Get the latest script from Elementum:
- Navigate to Settings > Cloud Links in Elementum
- Click Add Connection
- Select “Snowflake”
- Click “Download Setup Script”
2
Prepare Your Password
Set a strong password for the Elementum service account:
Important: Save this password securely - you’ll need it to configure the connection in Elementum.
3
Run the Core Script
Execute the script in Snowflake:
- Open Snowflake web interface
- Switch to ACCOUNTADMIN role
- Open a new worksheet
- Paste the modified script
- Execute all statements
4
Configure Data Access
Grant permissions for your specific tables:The script includes template commands that you need to customize for your data:
- Read-Only Tables
- Transactional Tables
- Schema-Level Access
For reference data and reporting tables:
5
Verify Configuration
Test the setup before proceeding:
Configuration Summary
After successful script execution, you’ll have these credentials for Elementum configuration:Connection Details
Username:
ELEMENTUM
Password: [your chosen password]
Role: ELEMENTUM
Warehouse: ELEMENTUM
Database: ELEMENTUM
Next Steps
Use these credentials in the Elementum Configuration Guide to complete your setup
Performance Optimization
The script creates an optimized warehouse configuration, but you may want to adjust based on your specific needs:- Warehouse Sizing
- Table Optimization
Default Configuration:
- Size: Medium
- Min Clusters: 1
- Max Clusters: 10
- Auto-Suspend: 60 seconds
- Increase size for large data volumes or complex queries
- Decrease size for development/testing environments
- Adjust cluster limits based on concurrency needs
Troubleshooting
Script Execution Errors
Script Execution Errors
Common Issues and Solutions:Permission Denied:
- Ensure you’re using ACCOUNTADMIN role
- Verify you have permission to create users and roles
- Check if ELEMENTUM user exists from previous setup
- Drop existing user if starting fresh:
DROP USER IF EXISTS ELEMENTUM;
- Verify your account has available compute resources
- Check if warehouse name conflicts with existing warehouses
Data Access Issues
Data Access Issues
After Script Completion:Cannot Access Tables:
- Verify table names are correct (case-sensitive)
- Confirm permissions were granted correctly
- Check if tables exist in specified database/schema
- Verify change tracking is enabled on source tables
- Ensure table has been modified since enabling tracking
- Check for sufficient permissions on the table
Performance Problems
Performance Problems
If Queries Are Slow:Warehouse Issues:
- Consider increasing warehouse size for complex queries
- Check if warehouse is auto-suspended during queries
- Review concurrent usage patterns
- Implement proper table types for your workload
- Consider data partitioning for large tables
- Review query patterns and optimize as needed
Security Considerations
The script implements security best practices:Principle of Least Privilege
Minimal Permissions: Only grants necessary access rights
Role Isolation: Dedicated role prevents permission creep
Audit Trail: All access logged and monitored
Secure Configuration
Strong Authentication: Password requirements enforced
Network Security: IP whitelisting for access control
Encrypted Connections: TLS encryption for all communication
Next Steps
With your Snowflake configuration complete, proceed to:1
Configure Elementum Connection
Complete the setup in Elementum using your new credentials
2
Optimize Performance
Review table types and warehouse configuration for optimal performance
3
Implement Best Practices
Follow our data best practices for long-term success
Elementum Configuration
Complete your CloudLink setup in the Elementum interface
Performance Optimization
Fine-tune your Snowflake warehouses for optimal performance
Getting Help
Technical Issues
Get help with setup problems and configuration issues
Best Practices
Learn advanced techniques for Elementum success
This guide is updated regularly with the latest script features and best practices. Last updated: