github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/plan-data-depends-on/main.tf (about)

     1  resource "test_resource" "a" {
     2  }
     3  
     4  data "test_data" "d" {
     5    count = 1
     6    depends_on = [
     7      test_resource.a
     8    ]
     9  }
    10  
    11  resource "test_resource" "b" {
    12    count = 1
    13    foo = data.test_data.d[count.index].compute
    14  }