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
Terraform allows user to pass -var-file to set a collection of variables while also pass -var to set/overwrite some of the values on the fly.
In Terraform, Precedence of those variables is set based on the order of the cmd arguments as they were provided.. more details here
Current Terratest implementation forces the order of the options when building the cmd to always pass -var before -var-file, which ensures values inside -var-file to have higher precedence.
This could make things harder when testing or deploying multiple environments/instances where common configurations are grouped in one var-file and the test/deploy only needs to override one or two values to address a certain case.
The text was updated successfully, but these errors were encountered:
Terraform allows user to pass -var-file to set a collection of variables while also pass -var to set/overwrite some of the values on the fly.
In Terraform, Precedence of those variables is set based on the order of the cmd arguments as they were provided.. more details here
Current Terratest implementation forces the order of the options when building the cmd to always pass -var before -var-file, which ensures values inside -var-file to have higher precedence.
terratest/modules/terraform/format.go
Lines 58 to 61 in 49466ad
This could make things harder when testing or deploying multiple environments/instances where common configurations are grouped in one var-file and the test/deploy only needs to override one or two values to address a certain case.
The text was updated successfully, but these errors were encountered: