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

terraform-validate fails if modules are not initialized #157

Closed
ahmad-hamade opened this issue Nov 2, 2020 · 4 comments · Fixed by #158
Closed

terraform-validate fails if modules are not initialized #157

ahmad-hamade opened this issue Nov 2, 2020 · 4 comments · Fixed by #158

Comments

@ahmad-hamade
Copy link

The hook terraform-validate will fail if the terraform modules are not initialized with terraform init -backend=false.

Any reason for not adding this missing step as part of the validation hook script like in gruntwork-io/pre-commit hooks?

https://github.com/gruntwork-io/pre-commit/blob/master/hooks/terraform-validate.sh#L12

@antonbabenko
Copy link
Owner

I was working a bit on it during week-ends. #158 is almost complete.

@ahmad-hamade
Copy link
Author

Thank you @antonbabenko 😃

@antonbabenko
Copy link
Owner

Please give a try to v1.44.0.

@ahmad-hamade
Copy link
Author

I've tested and it works perfectly.

Thanks a lot, @antonbabenko 👍

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

Successfully merging a pull request may close this issue.

2 participants