Skip to main content

Terragrunt version swallows stderr from Terraform/OpenTofu

Spacelift runners currently download Terragrunt version 0.67.2 as the “latest” available version of Terragrunt. Versions 0.67.0-0.67.4 have a known bug where they swallow the stderr from Terraform/OpenTofu. As a result, when a stack fails due to a terraform error, the error is not visible in the log and it becomes rather difficult to troubleshoot.

Please update to a newer version of Terragrunt that does not have this problem!

Here is the upstream issue:

And here is the PR fixing it:

The current latest version is 0.68.7. I’m not sure exactly how Spacelift determines when it makes a new Terragrunt version available to the runner initialization, but it would really be nice if we were able to influence the version for the runner initialization definitively through our own configuration. (I know I can use custom images, or before_init hooks to install custom software, which we are definitely considering.) Our stacks are already configured to use >= 0.48.6 as the terragrunt version constraint, but we still only get 0.67.2.

Workaround
Status: ✅ Completed2 comments

Log in to comment and vote

Comments2

  • Yellow Mirror

    •

    Nov 5, 2024

    Can confirm we’re seeing terragrunt version 0.68.7 now, and the stderr is no longer being swallowed. Thanks!

    [01JBYH0SNM8RCB648F5ERCT82V] Downloading Terragrunt 0.68.7...
    • Natalia Gazda

      Team•

      Nov 6, 2024

      Great to hear :) Sorry for the delay with bringing up newer versions.