mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-03 05:50:43 -05:00
32 lines
398 B
HCL
32 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
|
||
|
|
}
|