github.com/gmlexx/terraform@v0.9.6-0.20170514090029-1532b2a67680/terraform/test-fixtures/apply-cbd-depends-non-cbd/main.tf (about)

     1  resource "aws_instance" "foo" {
     2    require_new = "yes"
     3  }
     4  
     5  resource "aws_instance" "bar" {
     6    require_new = "yes"
     7    value       = "${aws_instance.foo.id}"
     8  
     9    lifecycle {
    10      create_before_destroy = true
    11    }
    12  }