gruntwork-io / terragrunt

Terragrunt is a flexible orchestration tool that allows Infrastructure as Code written in OpenTofu/Terraform to scale.
https://terragrunt.gruntwork.io/
MIT License
8.09k stars 981 forks source link

New log shows STDERR with Terragrunt Provider Cache #3420

Closed levkohimins closed 1 month ago

levkohimins commented 1 month ago

Describe the bug

Terragrunt Provider Cache is designed in such a way that it first runs terraform/tofu to get requests for missing providers, then forcibly breaks connections to create a cache of these providers, and then runs terraform/tofu again. Therefore, this error is a normal working flow, but with the new logs and the addition of STDERR level, it was not taken into account to suppress this message from users.

1  tmuxinator local 2024-09-19 at 4 20 47 PM

Steps To Reproduce

terragrunt --terragrunt-provider-cache
terraform {
  required_providers {
    null = {
      source = "registry.terraform.io/hashicorp/null"
    }
  }
}

Expected behavior

logs do not contain STDERR messages

Nice to haves

Versions

avx-rodmans commented 1 month ago

I am having the same issue. I use vscode devcontainers (docker) to run my terraform / terragrunt. I get the 423 error code when running terragrunt plan in my working directory. The plan still runs for me

Screenshot 2024-09-27 at 10 44 30 AM
levkohimins commented 1 month ago

@avx-rodmans we are working on it, will fix it soon.

levkohimins commented 1 month ago

Resolved in v0.68.0-beta2024100801 release.