github.com/heimweh/terraform@v0.7.4/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  }