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

Terragrunt Provider Cache discovers registry names URLs instead of mirror servers URLs #3421

Closed levkohimins closed 1 month ago

levkohimins commented 1 month ago

Describe the bug

Terragrunt Provider Cache discovers URLs that are specified as --terragrunt-provider-cache-registry-names rather than URLs of the mirror servers from which it caches providers.

Steps To Reproduce

terragrunt --terragrunt-provider-cache --terragrunt-provider-cache-registry-names registry.opentofu.org

~/.terraformrc

provider_installation {
  direct {
    exclude = ["*/*/*"]
  }
  network_mirror {
    url = "https://artifactory-host/registry-terraform-io-mirror/providers/"
    include = ["*/*/*"]
  }
}

Expected behavior

Terragrunt discovers endpoints of the host specified in the network_mirror section.

Nice to haves

Versions

levkohimins commented 1 month ago

Resolved in v0.67.12 release.