Giter VIP home page Giter VIP logo

Comments (4)

fortytw2 avatar fortytw2 commented on May 12, 2024

Could this also be fixed by reloading the .terragrunt every time the command is run?

from terragrunt.

josh-padnick avatar josh-padnick commented on May 12, 2024

@fortytw2 Thanks for the upvote and comment!

Parsing .terragrunt and executing terraform remote config on every run of Terragrunt would solve the problem, but I'd prefer to avoid running terraform remote config on every single Terraform run in case that causes side effects.

For example, Terraform expects the terraform remote config command to be run only once, so the test suite for Terraform won't necessarily capture subtle bugs that arise from running this every time.

Also, probably the cleanest way to apply a new .terragrunt configuration is to completely delete the .terraform folder and start from scratch, but we certainly wouldn't want to do that on every run b/c of all the extra bandwidth, there may be multiple modules to download, etc.

from terragrunt.

fortytw2 avatar fortytw2 commented on May 12, 2024

hmmmm - sounds like some middle ground is needed then, instead of going for a more complex solution (hashing .terragrunt), it should be pretty easy to add a terragrunt reload command that just re-runs terraform remote config when you know you've changed it

from terragrunt.

brikis98 avatar brikis98 commented on May 12, 2024

I like the idea of hashing .terragrunt, but I'm not keen on writing and managing extra files to maintain that hash. There is probably a fairly simple bug in this code that just needs a second look.

Whatever solution we go with, the terragrunt reload command sounds like a good idea to have as a backup.

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.