Coder Social home page Coder Social logo

Comments (8)

josh-padnick avatar josh-padnick commented on August 26, 2024

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.

from terragrunt.

gregwebs avatar gregwebs commented on August 26, 2024

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.

from terragrunt.

abtreece avatar abtreece commented on August 26, 2024

Some of the Terragrunt features are also features of Terraform Enterprise,
locking in particular. Thus you may find some opposition to getting them
included in Terraform.

from terragrunt.

dmrzzz avatar dmrzzz commented on August 26, 2024

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.

from terragrunt.

brikis98 avatar brikis98 commented on August 26, 2024

@dmrzzz That's a great idea. It could be done via a command-line flag, env var, or a setting in .terragrunt:

terraform = {
  path = "/foo/bar/terraform"
}

I'd happily accept a PR for that!

from terragrunt.

dmrzzz avatar dmrzzz commented on August 26, 2024

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.

from terragrunt.

brikis98 avatar brikis98 commented on August 26, 2024

@dmrzzz PR worked just fine. Nice work and thank you for contributing :)

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.

Ah, yea, you're right.

from terragrunt.

brikis98 avatar brikis98 commented on August 26, 2024

#76 Allows you to specify the path to Terraform via an env var or command-line option.

from terragrunt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.