blob: b523204a8de4ba1e34e8359775e24fd6985c711c [file] [log] [blame]
resource "aws_instance" "foo" {
count = 2
num = "2"
computed = data.aws_vpc.bar[count.index].id
lifecycle {
create_before_destroy = true
}
}
data "aws_vpc" "bar" {
count = 2
foo = count.index
}