cloud-infrastructure/terraform/modules/snowflake/hm_snowflake_database/main.tf
terraform {
required_providers {
snowflake = {
source = "Snowflake-Labs/snowflake"
}
}
}
# https://registry.terraform.io/providers/Snowflake-Labs/snowflake/latest/docs/resources/database
resource "snowflake_database" "main" {
name = var.snowflake_database_name
data_retention_time_in_days = var.data_retention_days
lifecycle {
prevent_destroy = true
}
}