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

25 lines
396 B
Terraform
Raw Permalink Normal View History

variable "customer" {
type = string
}
variable "environment" {
type = string
}
variable "env_strategy" {
type = string
default = "database_per_env"
}
locals {
prefix = var.env_strategy == "database_per_env" ? "${upper(var.customer)}_${upper(var.environment)}" : upper(var.customer)
}
output "prefix" {
value = local.prefix
}
output "environment" {
value = var.environment
}