Snowflake Cloud Provider Integration
Snowflake provides deep integration with all major cloud providers, enabling seamless connectivity, security, and performance optimization for cloud-native workloads.
What is Cloud Integration?
- Connects natively to AWS, Azure, and GCP
- Provides PrivateLink for secure, private connectivity
- Enables cross-cloud data sharing without data movement
Architecture Overview
The Snowflake multi-cloud architecture connects to three major cloud providers:
| Provider | Storage | Networking | Security | Compute |
|---|---|---|---|---|
| AWS | S3 | VPC Peering, PrivateLink | IAM Roles, KMS Encryption | Lambda |
| Azure | Blob Storage | VNet Integration, Private Link | Managed Identity, Key Vault | Functions |
| GCP | Cloud Storage | VPC peering, Private Google Access | Service Accounts, Cloud KMS | Functions |
Snowflake Data Cloud provides multi-region capabilities with consistent APIs across all providers.
Integration Features
- Networking â PrivateLink, VPC peering
- Security â IAM, KMS, encryption
- Storage â S3, Blob, GCS
- Compute â Lambda, Functions
AWS Integration
S3 External Stage
-- Create storage integration
CREATE OR REPLACE STORAGE INTEGRATION s3_integration
TYPE = EXTERNAL_STAGE
ENABLED = TRUE
STORAGE_PROVIDER = S3
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::123456789:role/snowflake-role'
STORAGE_ALLOWED_LOCATIONS = ('s3://my-bucket/data/');
-- Create external stage
CREATE OR REPLACE STAGE s3_stage
URL = 's3://my-bucket/data/'
STORAGE_INTEGRATION = s3_integration
FILE_FORMAT = (TYPE = 'PARQUET');
AWS PrivateLink
-- Configure PrivateLink
CREATE OR REPLACE ACCOUNT LEVEL PARAMETERS
SET PRIVATE_ENDPOINT = 'vpce-1234567890abcdef0.snowflake.us-east-1.vpce.amazonaws.com';
-- Verify connection
SELECT SYSTEM$TYPE_OF_CONNECTION();
Azure Integration
Blob Storage Stage
CREATE OR REPLACE STORAGE INTEGRATION azure_integration
TYPE = EXTERNAL_STAGE
ENABLED = TRUE
STORAGE_PROVIDER = AZURE
AZURE_TENANT_ID = 'your-tenant-id'
AZURE_STORAGE_ALLOWED_LOCATIONS = ('azure://myaccount.blob.core.windows.net/mycontainer/');
CREATE OR REPLACE STAGE azure_stage
URL = 'azure://myaccount.blob.core.windows.net/mycontainer/data/'
STORAGE_INTEGRATION = azure_integration;
Azure Private Link
CREATE OR REPLACE ACCOUNT LEVEL PARAMETERS
SET PRIVATE_ENDPOINT = 'privatelink.snf-abc123.database.windows.net';
GCP Integration
GCS Stage
CREATE OR REPLACE STORAGE INTEGRATION gcs_integration
TYPE = EXTERNAL_STAGE
ENABLED = TRUE
STORAGE_PROVIDER = GCS
GCS_STORAGE_ALLOWED_LOCATIONS = ('gcs://my-bucket/data/');
CREATE OR REPLACE STAGE gcs_stage
URL = 'gcs://my-bucket/data/'
STORAGE_INTEGRATION = gcs_integration;
Cross-Cloud Data Sharing
-- Share data across clouds
CREATE SHARE cross_cloud_share;
GRANT USAGE ON DATABASE my_db TO SHARE cross_cloud_share;
GRANT USAGE ON SCHEMA my_schema TO SHARE cross_cloud_share;
GRANT SELECT ON TABLE my_table TO SHARE cross_cloud_share;
-- Consumer account (different cloud)
CREATE DATABASE shared_data FROM SHARE provider_account.cross_cloud_share;
SELECT * FROM shared_data.my_schema.my_table;
Security Integration
Key Management
-- AWS KMS encryption
CREATE OR REPLACE STORAGE INTEGRATION encrypted_s3
TYPE = EXTERNAL_STAGE
STORAGE_PROVIDER = S3
STORAGE_AWS_ROLE_ARN = 'arn:aws:iam::role/snowflake-role'
STORAGE_AWS_KMS_KEY_ARN = 'arn:aws:kms:us-east-1:123456789:key/12345678-1234-1234-1234-123456789012';
-- Azure Key Vault
CREATE OR REPLACE STORAGE INTEGRATION encrypted_azure
TYPE = EXTERNAL_STAGE
STORAGE_PROVIDER = AZURE
AZURE_TENANT_ID = 'tenant-id'
AZURE_ENCRYPTION_TYPE = 'AZURE_KEY_VAULT'
AZURE_KEY_URL = 'https://mykeyvault.vault.azure.net/keys/mykey';
Network Security
-- IP restrictions
ALTER ACCOUNT SET NETWORK_POLICY = 'restricted_policy';
-- Network policy
CREATE OR REPLACE NETWORK POLICY restricted_policy
ALLOWED_IP_LIST = ('203.0.113.0/24', '198.51.100.0/24')
BLOCKED_IP_LIST = ('192.0.2.0/24');
Cloud Provider Comparison
| Feature | AWS | Azure | GCP |
|---|---|---|---|
| Storage | S3 | Blob | GCS |
| Networking | VPC Peering | VNet | VPC Peering |
| Private Access | PrivateLink | Private Link | Private Google Access |
| IAM | IAM Roles | Managed Identity | Service Accounts |
| KMS | KMS | Key Vault | Cloud KMS |
| CDN | CloudFront | Azure CDN | Cloud CDN |
See Also
- Cross-Platform Integration â Connect and query external databases and data lakes
- Federated Query â Query data across multiple sources without copying
- Architecture â Understand Snowflake's multi-cluster shared data architecture
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type â Always start by categorizing the problem
- Incorrect formula application â Verify the formula applies to your specific case
- Unit errors â Always check units are consistent throughout
- Sign errors â Pay careful attention to positive and negative values
- Rounding too early â Keep full precision until the final answer
- Forgetting constraints â Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic â Build on the foundation laid here
- Next Topic â See how this concept extends to more advanced material
- Practice Problems â Additional exercises with solutions
- Video Explanation â Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions