github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/terraform/testdata/apply-destroy-with-locals/main.tf (about)

     1  locals {
     2    name = "test-${aws_instance.foo.id}"
     3  }
     4  resource "aws_instance" "foo" {}
     5  
     6  output "name" {
     7    value = "${local.name}"
     8  }