github.com/burmuley/terraform@v0.11.12-beta1/config/test-fixtures/output-warnings/main.tf (about)

     1  locals {
     2    "count" = 1
     3  }
     4  
     5  resource "test_instance" "foo" {
     6    count = "${local.count}"
     7  }
     8  
     9  output "foo_id" {
    10    value = "${test_instance.foo.id}"
    11  }
    12  
    13  variable "condition" {
    14    default = "true"
    15  }
    16  
    17  resource "test_instance" "bar" {
    18    count = "${var.condition ? 1 : 0}"
    19  }
    20  
    21  
    22  output "bar_id" {
    23    value = "${test_instance.bar.id}"
    24  }