mirror of
https://github.com/hashicorp/terraform.git
synced 2026-03-22 02:20:07 -04:00
56 lines
754 B
HCL
56 lines
754 B
HCL
|
|
component "single" {
|
|
source = "./empty-module"
|
|
}
|
|
|
|
component "for_each" {
|
|
source = "./empty-module"
|
|
for_each = {}
|
|
}
|
|
|
|
stack "single" {
|
|
source = "./child"
|
|
}
|
|
|
|
stack "for_each" {
|
|
source = "./child"
|
|
for_each = {}
|
|
}
|
|
|
|
variable "unused" {
|
|
type = string
|
|
}
|
|
|
|
variable "unused_with_default" {
|
|
type = string
|
|
default = "default"
|
|
}
|
|
|
|
variable "ephemeral" {
|
|
type = string
|
|
default = null
|
|
ephemeral = true
|
|
}
|
|
|
|
variable "sensitive" {
|
|
type = string
|
|
default = null
|
|
sensitive = true
|
|
}
|
|
|
|
output "normal" {
|
|
type = string
|
|
value = var.optional
|
|
}
|
|
|
|
output "ephemeral" {
|
|
type = string
|
|
value = var.ephemeral
|
|
ephemeral = true
|
|
}
|
|
|
|
output "sensitive" {
|
|
type = string
|
|
value = var.sensitive
|
|
sensitive = true
|
|
}
|