mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
If a data source has explicit dependencies in `depends_on`, we can assume the user has added those because of a dependency not tracked directly in the config. If there are any entries in `depends_on`, don't apply the data source early during Refresh.
9 lines
140 B
HCL
9 lines
140 B
HCL
resource "null_resource" "write" {
|
|
foo = "attribute"
|
|
}
|
|
|
|
data "null_data_source" "read" {
|
|
foo = ""
|
|
depends_on = ["null_resource.write"]
|
|
}
|