-
-
Notifications
You must be signed in to change notification settings - Fork 977
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
invoke terraform directly instead of terragrunt #22
Comments
Hi @gregwebs! In our blog post introducing terragrunt, under the section Why not just submit Pull Requests to Terraform?, we give the specific reasons why we wrote a separate tool versus submitting a few Pull Requests to update Terraform directly. But we also clarify that while our short-term goal with Terragrunt is to get community feedback and empower our own clients, our ultimate goal is to see this functionality implemented directly in Terraform. |
It sounds like you are saying the way you want to achieve this is by merging the code into terraform. I have a feeling that may be a long way out from happening right now, but I am definitely supportive of that. I may take a stab at trying to create a data source that does locking when I get a little more concerned about locking. |
Some of the Terragrunt features are also features of Terraform Enterprise, |
As an alternative lower-tech approach, how about letting terragrunt learn the location of my terraform binary from a terragrunt-specific environment variable? That way I don't have to put terraform on my PATH, which means if I accidentally type terraform instead of terragrunt it won't do anything. |
@dmrzzz That's a great idea. It could be done via a command-line flag, env var, or a setting in terraform = {
path = "/foo/bar/terraform"
} I'd happily accept a PR for that! |
PR submitted (hopefully)! This is my first-ever Go code and my first-ever github pull request, so I apologize for any newbie mistakes. I chose env var / command-line flag as opposed to a .terragrunt setting because the value is specific to your local workstation and shouldn't be checked into source control. |
@dmrzzz PR worked just fine. Nice work and thank you for contributing :)
Ah, yea, you're right. |
#76 Allows you to specify the path to Terraform via an env var or command-line option. |
I would like to use terraform directly if possible. With this layer on top it is possible for someone to just invoke
terraform
directly instead of usingterragrunt
.Is it possible to make terragrunt a terraform plugin or possibly a data source such that I can put 1 line into a terraform file that will ensure that terragrunt is installed for
terraform plan
to be able to be run successfully?The text was updated successfully, but these errors were encountered: