terraform/internal/command/testdata/apply-ephemeral-variable/main.tf
James Bardin 4883499a89 test non-string env var input variables
Non-string input variables taken from the environment initially need to
be parsed and stored as string, since there is no type associated type
information. Make sure these are correctly handled when validated during
apply.
2024-11-27 13:16:33 -05:00

19 lines
249 B
HCL

variable "foo" {
type = string
ephemeral = true
}
variable "bar" {
type = string
default = null
ephemeral = true
}
variable "unused" {
type = map(string)
default = null
}
resource "test_instance" "foo" {
ami = "bar"
}