github.com/LorbusChris/terraform@v0.11.12-beta1/terraform/test-fixtures/apply-targeted-module-unrelated-outputs/child1/main.tf (about)

     1  variable "instance_id" {
     2  }
     3  
     4  output "instance_id" {
     5    # The instance here isn't targeted, so this output shouldn't get updated.
     6    # But it already has an existing value in state (specified within the
     7    # test code) so we expect this to remain unchanged afterwards.
     8    value = "${aws_instance.foo.id}"
     9  }
    10  
    11  output "given_instance_id" {
    12    value = "${var.instance_id}"
    13  }
    14  
    15  resource "aws_instance" "foo" {
    16    foo = "${var.instance_id}"
    17  }