mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
Make sure duplicate depends_on entries are pruned from existing states on read. Make sure new state built from configs with multiple references to the same resource only add it once to the Dependencies.
9 lines
161 B
HCL
9 lines
161 B
HCL
resource "aws_instance" "create" {
|
|
bar = "abc"
|
|
}
|
|
|
|
resource "aws_instance" "other" {
|
|
var = "${aws_instance.create.id}"
|
|
foo = "${aws_instance.create.bar}"
|
|
}
|