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 does not initialize in other directories (examples) #160

Closed
pritho opened this issue Nov 11, 2020 · 2 comments
Closed

Comments

@pritho
Copy link

pritho commented Nov 11, 2020

Hey,

we're using the terraform_validate hook.
Great that does an init now to not fail anymore.
Would be amazing to do this also in directories that call that module.

My Use-Case:
example-directory showing the execution of the module.
A terraform init in that directory would also be necessary for us.

Proposal: add an argument for terraform_validate to add directories for also executing the init.

@antonbabenko
Copy link
Owner

I agree that the possibility to exclude directories where init and/or validate should run would be helpful. I don't think I will work on this myself, but I will be very glad to review a PR if anyone wants to make it.

@pritho
Copy link
Author

pritho commented Nov 13, 2020

Hey,

just reviewed it, with #158 it works fine for me, seems I was running v1.43.0.

Thanks for your help and this great repo!

@pritho pritho closed this as completed Nov 13, 2020
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

No branches or pull requests

2 participants