terraform-provider-snowflake is a Terraform provider for the Snowflake cloud data warehouse.
- snowflake_database
- snowflake_schema
- snowflake_pipe
- snowflake_table
- snowflake_view
- snowflake_schema
Right now the provider is configured by providing the full DSN which is fed through to the gosnowflake connector. Here are some examples of the format of the DSN:
user[:password]@account/database/schema[?param1=value1¶mN=valueN]
user[:password]@account/database[?param1=value1¶mN=valueN]
user[:password]@host:port/database/schema?account=user_account[?param1=value1¶mN=valueN]
If a variable is set up for the DSN it can be configured as an environment variable or in terraform.tfvars
.
The provider needs an active warehouse to run queries against information_schema for refreshing resources. You have to pre-create an auto-resuming warehouse and specify that warehouse in the DSN as a parameter (ex. ?warehouse=myWarehouse
).