sky-lattice/blueprint/modules/database_zones/main.tf
VG 611ad214fe Initial Sky Lattice scaffold: blueprint, platformctl, and docs.
Encode intent/decision/plan workflow for Snowflake platform delivery so engagements share a durable recipe instead of one-off LLM chats.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-15 01:48:36 -04:00

36 lines
769 B
HCL

variable "prefix" {
type = string
}
variable "domain" {
type = string
}
variable "zones" {
type = list(string)
default = ["landing", "raw", "curated", "marts"]
}
# Placeholder resources — replace with snowflakedb/snowflake provider resources when applying to a real account.
# Sky Lattice renders these as documentation + planned object graph for v0.
locals {
database_name = "${var.prefix}_${upper(var.domain)}"
schema_names = { for z in var.zones : z => upper(z) }
}
output "database_name" {
value = local.database_name
}
output "schemas" {
value = local.schema_names
}
output "planned_objects" {
value = concat(
["database:${local.database_name}"],
[for z, s in local.schema_names : "schema:${local.database_name}.${s}"]
)
}