Comments (4)
Ah, good catch.
from terragrunt.
Any update on this?
from terragrunt.
@cultavix We haven't had a chance to take a crack at it. Anyone interested in submitting a PR?
Easiest solution is probably to have the checkForErrorsAndExit
method in main.go check if the error is of some new type ErrorWithExitCode
and if it is, call os.Exit
with that code. After that, all you'd have to do is update the RunShellCommand
method in run_shell_cmd.go to capture the exit code when there is an error and return an ErrorWithExitCode
struct.
from terragrunt.
I took a stab at this with PR #98. checkForErrorsAndExit
will exit with the underlying error code in the case of an error. I can confirm that this exits with exit code = 2, as expected, when terragrunt plan -detailed-exitcode
is called and there are diffs.
from terragrunt.
Related Issues (20)
- Terragrunt validate-inputs doesn't work with dependency blocks that require mocked values HOT 2
- Scaffold command not handling well multiline description HOT 2
- Caching not working for in-house/local Terraform Providers HOT 1
- Regression: terragrunt-info does not work with mock outputs HOT 2
- Too many Rs in `TERRRAGRUNT_IAM_ASSUME_ROLE_WEB_IDENTITY_TOKEN`
- Improve Context When Logging For State Bucket Updates HOT 2
- CLI argument`--terragrunt-include-dir` includes all folders if the pattern does not match since version `0.50.1` HOT 2
- Add log output before executing external command in GetCredentials
- Dead Provider Caching Link in the Documentation
- Using provider caching with existing `.terraformrc` having `provider_installation` block defined. HOT 2
- Provider caching does not follow "well-known" discovery specification HOT 6
- Highly-parallel deployment with Terragrunt Provider Caching fails with "501 Not Implemented" error HOT 7
- Flaky TestTableTagging HOT 1
- Using provider caching with existing `.terraformrc` having `provider_installation` block defined. HOT 11
- Parallel terragrunt runs with provider cache conflict and fail HOT 2
- Unable to use Terraform modules stored in a private S3 bucket HOT 1
- 1Password CLI integration HOT 2
- Authentication Provider Command Does Not Work With Dependencies HOT 2
- Add a way to supply credentials for a third-party registry when using Terragrunt Provider Cache HOT 9
- Moving to `main` on 2024/09/03
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.