Skip to content
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

Pass custom tfvar file to terraform validate #116

Closed
robinbowes opened this issue Jun 10, 2020 · 1 comment · Fixed by #125
Closed

Pass custom tfvar file to terraform validate #116

robinbowes opened this issue Jun 10, 2020 · 1 comment · Fixed by #125

Comments

@robinbowes
Copy link
Contributor

I'd like terraform validate to run with a -var-file=test/terraform.tfvars parameter.

Is there an easy way to pass this as an option to the terraform_validate.sh script?

@robinbowes
Copy link
Contributor Author

It seems it should be possible to pass args into the script as follows:

-   repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v1.2.3
    hooks:
    -   id: flake8
        args: [--max-line-length=131]

See the docs: https://pre-commit.com/#passing-arguments-to-hooks

Is there any chance you could add support something like that in terraform-validate?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant