Export Existing Resources¶
Already have a Snowflake environment? Generate config from your existing setup:
Export Specific Resource Types¶
Export only the resources you need:
# Export warehouses only
snowcap export --resource=warehouse --out=warehouses.yml
# Export roles and grants
snowcap export --resource=role,grant --out=rbac.yml
# Export all supported resources
snowcap export --resource=all --out=snowcap.yml
Output Format¶
The exported YAML can be used directly with snowcap plan and snowcap apply:
# Exported warehouses.yml
warehouses:
- name: ANALYTICS
warehouse_size: XSMALL
auto_suspend: 60
auto_resume: true
- name: LOADING
warehouse_size: SMALL
auto_suspend: 300
auto_resume: true
Workflow: Migrate from Manual Management¶
-
Export your current Snowflake configuration:
-
Review and organize the exported config into separate files if needed
-
Add the config to version control:
-
From now on, manage changes through Snowcap: