github.com/hugorut/terraform@v1.1.3/src/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  }