sky-lattice/blueprint/modules/rbac/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

37 lines
589 B
HCL

variable "prefix" {
type = string
}
variable "domain" {
type = string
}
variable "access_profile" {
type = string
default = "standard"
}
variable "environments" {
type = list(string)
}
locals {
roles = {
analyst = "${var.prefix}_${upper(var.domain)}_ANALYST"
loader = "${var.prefix}_${upper(var.domain)}_LOADER"
engineer = "${var.prefix}_${upper(var.domain)}_ENGINEER"
}
}
output "roles" {
value = local.roles
}
output "access_profile" {
value = var.access_profile
}
output "planned_objects" {
value = [for k, v in local.roles : "role:${v}"]
}