Giter Site home page Giter Site logo

Comments (7)

mildred avatar mildred commented on May 22, 2024

Additionally, terragrunt should forward SIGTERM signals to terraform. There is no guaantee that terraform will have received it. See also hashicorp/terraform#10459

from terragrunt.

mildred avatar mildred commented on May 22, 2024

In fact, on some cases (default on systemd services) SIGTERM is sent to all processes in the cgroup. In other cases (sysvservice, docker) the SIGTERM signal is only sent to the parent process.

from terragrunt.

brikis98 avatar brikis98 commented on May 22, 2024

Good point. Looks like you have some code written for this already. Would you like to submit a PR?

from terragrunt.

mildred avatar mildred commented on May 22, 2024

Yes, I will submit a PR once I get something with terraform. There are two aspects:

  • handle SIGTERM as well as SIGINT
  • make sure terraform has received SIGTERM. When we type Ctrl-C in a terminal, the VT will make sure that all VT clients are sent a SIGINT signal. With SIGTERM, we are not sure that terraform received SIGTERM and we must probably forward the signal.

Are you ok with forwarding the SIGTERM signal ?

When forwarding SIGTERM we must make sure terraform can handle it. Currently it does not respond to SIGTERM and doesn't cleanly finish like it does with Ctrl-C. I'm currently submitting a PR on terraform for that.

from terragrunt.

brikis98 avatar brikis98 commented on May 22, 2024

Probably makes sense to wait for your PR to be merged into Terraform itself.

from terragrunt.

mildred avatar mildred commented on May 22, 2024

yes

from terragrunt.

brikis98 avatar brikis98 commented on May 22, 2024

This should have been fixed by #72.

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.