resource "test_object" "A" { lifecycle { creat&_before_destroy = true } } resource "test_object" "B" { test_string = "${test_object.A.id}" }