opentofu/terraform/testdata/transform-cbd-destroy-edge-both-count/main.tf
James Bardin 470362b051 fix CBD tests to work on real data
The CBDEdgeTransformer tests worked on fake data structures, with a
synthetic graph, and configs that didn't match. Update them to generate
a more complete graph, with real node implementations, from real
configs.

The output graph is filtered down to instances, and the results still
functionally match the original expected test results, with some minor
additions due to using the real implementation.
2019-10-24 12:01:50 -04:00

12 lines
202 B
HCL

resource "test_object" "A" {
count = 2
lifecycle {
create_before_destroy = true
}
}
resource "test_object" "B" {
count = 2
test_string = test_object.A[*].test_string[count.index]
}