github.com/paybyphone/terraform@v0.9.5-0.20170613192930-9706042ddd51/terraform/test-fixtures/apply-depends-create-before/main.tf (about) 1 2 resource "aws_instance" "web" { 3 require_new = "ami-new" 4 lifecycle { 5 create_before_destroy = true 6 } 7 } 8 9 resource "aws_instance" "lb" { 10 instance = "${aws_instance.web.id}" 11 }