mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-02 21:40:48 -05:00
When handling root input variable values, we now consider unset and null values to be equivalent to each other. This is consistent with how we handle variables in embedded stacks, and very similar to how we handle variable in the modules runtime with `nullable = false`. One difference from the modules runtime case is that we do not prevent a null default value for stack variables.
31 lines
398 B
HCL
31 lines
398 B
HCL
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
|
|
}
|