github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/plan-cbd-depends-datasource/main.tf (about) 1 resource "aws_instance" "foo" { 2 count = 2 3 num = "2" 4 computed = data.aws_vpc.bar[count.index].id 5 6 lifecycle { 7 create_before_destroy = true 8 } 9 } 10 11 data "aws_vpc" "bar" { 12 count = 2 13 foo = count.index 14 }