mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
This connects the destroy edges so that when a `-target` is specified on a destroy, the proper dependencies get destroyed as well.
8 lines
124 B
HCL
8 lines
124 B
HCL
resource "aws_instance" "foo" {
|
|
count = 3
|
|
}
|
|
|
|
resource "aws_instance" "bar" {
|
|
instances = ["${aws_instance.foo.*.id}"]
|
|
}
|