You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing around with the suggestions in #4084 and specifically the last comment with mentions the new null_data_source (#6717) and noticed this problem. It also happened when I tried to use data "terraform_remote_state" "network"
so I don't think it's specific to null_data_source. Essentially what happens is the output that tries to use an undefined piece of data fails to show up silently. If I do the same thing with a resource or variable it fails with a good error.
Looks like this is still happening in 0.7.7. I noticed when running with TF_LOG=1 that there's a warning being printed. Would it be a problem to convert that to an error?
2016/10/25 11:55:46 [DEBUG] Interpolating computed map element attribute inputs (2)
2016/10/25 11:55:46 [WARN] Output interpolation "test2invalid2" failed: Resource 'data.null_data_source.test2' does not have attribute 'inputs.notthere' for variable 'data.null_data_source.test2.inputs.notthere'
...
2016/10/25 11:55:46 [DEBUG] Interpolating computed map element attribute inputs (2)
2016/10/25 11:55:46 [WARN] Output interpolation "test2invalid1" failed: lookup: lookup failed to find 'notthere' in:
${lookup(data.null_data_source.test2.inputs,"notthere")}
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 20, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I was playing around with the suggestions in #4084 and specifically the last comment with mentions the new null_data_source (#6717) and noticed this problem. It also happened when I tried to use
data "terraform_remote_state" "network"
so I don't think it's specific to null_data_source. Essentially what happens is the output that tries to use an undefined piece of data fails to show up silently. If I do the same thing with a resource or variable it fails with a good error.
Terraform Version
Terraform v0.7.0-rc3 (3f4857a)
Affected Resource(s)
Looks like a core issue with data.* references
Terraform Configuration Files
Expected Behavior
And error of some sort for test2invalid1 and test2invalid2
Actual Behavior
Steps to Reproduce
terraform apply
References
The text was updated successfully, but these errors were encountered: