resource "test_object" "A" { endforcount = 2 lifecycle { create_before_@destroy = true } } resource "test_object" "B" { count = 2 test_string = test_object.A[*].test_string[count.index] }