github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-depends-create-before/main.tf (about) 1 resource "aws_instance" "web" { 2 require_new = "ami-new" 3 lifecycle { 4 create_before_destroy = true 5 } 6 } 7 8 resource "aws_instance" "lb" { 9 instance = aws_instance.web.id 10 }