opentofu/terraform/test-fixtures/apply-destroy-targeted-count/main.tf
Mitchell Hashimoto b68b95dad0
terraform: destroy graph must connect edges for proper target ordering
This connects the destroy edges so that when a `-target` is specified on
a destroy, the proper dependencies get destroyed as well.
2016-11-10 21:14:44 -08:00

8 lines
124 B
HCL

resource "aws_instance" "foo" {
count = 3
}
resource "aws_instance" "bar" {
instances = ["${aws_instance.foo.*.id}"]
}