github.com/adrian-bl/terraform@v0.7.0-rc2.0.20160705220747-de0a34fc3517/terraform/test-fixtures/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 }