Comments (7)
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.
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.
Good point. Looks like you have some code written for this already. Would you like to submit a PR?
from terragrunt.
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.
Probably makes sense to wait for your PR to be merged into Terraform itself.
from terragrunt.
yes
from terragrunt.
This should have been fixed by #72.
from terragrunt.
Related Issues (20)
- Lock errors when json and module prefix is enabled
- Add integration test for provider authentication
- Take into account user `provider_installation` settings when using Terragrunt Provider Cache HOT 1
- auto-approve for `terragrunt destroy` not working HOT 4
- Since v0.56.4, `touch terragrunt.hcl` causes `init` to run despite no other changes (possibly introduced by provider cache option)
- includes are possibly evaluated at the wrong time HOT 1
- connection refused when running `init -upgrade` with provider cache HOT 8
- Go vendoring broken in 0.58.3: no required module provides package github.com/gruntwork-io/terragrunt/terraform/getproviders/mocks HOT 2
- SOPS json issue with complex types
- Documentation Show the contents of the 'common_vars.yaml' file and format reasoning
- Documentation: Error trying an example from the docs for 'Example with S3'
- Documentation: Missing Example Details from "Single Include"
- Documentation: Multiple Includes example syntax I think is incorrect.
- Feature Flags HOT 2
- Official Docker image does not seem to have terragrunt installed HOT 1
- get_aws_account_id throttling
- Issue with public S3 bucket HTTPS source HOT 2
- Replacing a terraform source https://... with file:///... HOT 1
- Seeing checksum failed when installing latest terragrunt v0.58.7 release on github codespaces devcontainer HOT 1
- Flaky test `TestTerragruntProviderCache`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terragrunt.