sky-lattice/blueprint/modules/service_principals/main.tf

24 lines
355 B
Terraform
Raw Permalink Normal View History

variable "prefix" {
type = string
}
variable "enabled" {
type = bool
default = true
}
locals {
users = var.enabled ? {
terraform = "${var.prefix}_TF_SVC"
loader = "${var.prefix}_LOADER_SVC"
} : {}
}
output "service_users" {
value = local.users
}
output "planned_objects" {
value = [for k, v in local.users : "user:${v}"]
}