github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/transform-cbd-destroy-edge-both-count/main.tf (about)

     1  resource "test_object" "A" {
     2    count = 2
     3    lifecycle {
     4      create_before_destroy = true
     5    }
     6  }
     7  
     8  resource "test_object" "B" {
     9    count       = 2
    10    test_string = test_object.A[*].test_string[count.index]
    11  }