github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-destroy-cbd/main.tf (about) 1 resource "aws_instance" "foo" { } 2 resource "aws_instance" "bar" { 3 depends_on = ["aws_instance.foo"] 4 lifecycle { 5 create_before_destroy = true 6 } 7 }