terraform/config/testdata/output-warnings/main.tf

25 lines
321 B
Terraform
Raw Normal View History

2017-11-22 16:19:46 +01:00
locals {
"count" = 1
}
resource "test_instance" "foo" {
count = "${local.count}"
}
output "foo_id" {
value = "${test_instance.foo.id}"
}
variable "condition" {
default = "true"
}
resource "test_instance" "bar" {
count = "${var.condition ? 1 : 0}"
}
output "bar_id" {
value = "${test_instance.bar.id}"
}