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
The order of variables, resources, etc. defined within the configuration doesn't matter. Terraform configurations are declarative, so references to other resources and variables do not depend on the order they're defined.
However, it appears that a empty (forward) declaration that occurs after a value declaration unsets the value.
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 22, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From: https://www.terraform.io/docs/configuration/load.html
However, it appears that a empty (forward) declaration that occurs after a value declaration unsets the value.
To wit, this works:
But swap the order, and it queries for a value for "test":
Expected Behaviour: A late forward declaration should be silently ignored if there is already a value set for that variable in the symbol table.
The text was updated successfully, but these errors were encountered: