-
Notifications
You must be signed in to change notification settings - Fork 9.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration for X still contains unknown values during apply #36306
Comments
This behaviour stems from the implementation of the I'm not sure exactly why it would be returning unknown if there are null values included, but I'll leave the link to the function in case anyone else picks this up before I get back to it. |
The A
I think the only way to theoretically solve this generally for most cases would be to have Since this isn't completely fixable, and more or less constitutes an error in the configuration, was there a problem you were attempting to solve which didn't make use of a |
Thank you for such an elaborate explanation. The use-case is trivial: read the config from yaml and do whatever. Some fields in the configs could be omitted which would produce null. Nothing that value checks could not solve. This report is merely about the behaviour of the format function that essentially converts null to an unknown (even when %v is used). |
Thanks for the info @alex-goncharov. Yes, untyped |
Terraform Version
Terraform Configuration Files
Debug Output
Expected Behavior
Terraform should give the same error in both cases.
Actual Behavior
Steps to Reproduce
run in terraform console
The text was updated successfully, but these errors were encountered: