This PR updates the tfValidate function so it does not pass any -var or -var-file arguments to the validate command as it seems to be deprecated in 0.12 and warnings like below are raised.
Tested on 6.1-0.12.11:
$ terraform validate -var-file=config/test/terraform.tfvars -var build_number=4237
Warning: The -var and -var-file flags are not used in validate. Setting them has no effect.
These flags will be removed in a future version of Terraform.
Success! The configuration is valid, but there were some validation warnings as shown above.
This PR updates the
tfValidate
function so it does not pass any-var
or-var-file
arguments to thevalidate
command as it seems to be deprecated in 0.12 and warnings like below are raised.Tested on
6.1-0.12.11
:Also adds
tfValidate
test.