Commit graph

6 commits

Author SHA1 Message Date
Anton Babenko
d303bff1f9
feat: Make terraform_validate to run init if necessary (#158) 2020-11-02 21:44:54 +01:00
Robin Bowes
1d8af371d4
chore: Use lib_getopt for all hooks and some style tweaks (#137) 2020-08-27 21:55:28 +02:00
Robin Bowes
774c63e772
fix: Pass args and env vars to terraform validate (#125) 2020-08-27 11:57:45 +02:00
Nick M
7694fb9b9a
fix: Change terraform_validate hook functionality for subdirectories with terraform files (#100)
* Update terraform_validate.sh:
-Change to the directory before running terraform validate to use the Terraform
 configuration for the appropriate working directory.

* Neglected to change the terraform validate call to use the default of the
current directory.

* Several changes to improve functionality:
- Switch to checking the path for '*.tf' instead of always checking the current
  directory.
- Try to find a '.terraform' directory (which indicates a `terraform init`) and
  change to that directory before running `terraform validate`.

* Fix the description for the terraform_validate hook to reflect changes that were
made in:
35e0356188

* - Clean up comments.
- Adjust variable names to better reflect what they are holding.
2020-04-04 08:17:25 +02:00
Anton Babenko
1e5b3af0d2
Added shfmt to autoformat shell scripts (#86) 2020-01-21 11:54:13 +01:00
Paweł Szczepaniak
35e0356188 Upgraded to work with Terraform >= 0.12 (#44) 2019-06-17 13:09:31 +02:00
Renamed from terraform_validate_with_variables.sh (Browse further)