github.com/graywolf-at-work-2/terraform-vendor@v1.4.5/internal/terraform/testdata/data-source-read-with-plan-error/main.tf (about)

     1  resource "aws_instance" "foo" {
     2  }
     3  
     4  // this will be postponed until apply
     5  data "aws_data_source" "foo" {
     6    foo = aws_instance.foo.id
     7  }
     8  
     9  // this will cause an error in the final plan
    10  resource "test_instance" "bar" {
    11    foo = "error"
    12  }