github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/plan-cbd-maintain-root/main.tf (about) 1 resource "aws_instance" "foo" { 2 count = "2" 3 4 lifecycle { 5 create_before_destroy = true 6 } 7 } 8 9 resource "aws_instance" "bar" { 10 count = "2" 11 12 lifecycle { 13 create_before_destroy = true 14 } 15 } 16 17 output "out" { 18 value = "${aws_instance.foo.0.id}" 19 }