terraform/internal/stacks/stackruntime/testdata/mainbundle/test/plan-variable-defaults/plan-variable-default.tfstack.hcl

32 lines
398 B
HCL
Raw Normal View History

variable "beep" {
type = string
default = "BEEP"
}
output "beep" {
type = string
value = var.beep
}
stack "specified" {
source = "./child"
inputs = {
boop = var.beep
}
}
stack "defaulted" {
source = "./child"
inputs = {}
}
output "specified" {
type = string
value = stack.specified.result
}
output "defaulted" {
type = string
value = stack.defaulted.result
}