Terragrunt Provider Cache Server does not search multiple provider sources #3732
Closed
1 of 2 tasks
Labels
bug
Something isn't working
Describe the bug
If
TERRAGRUNT_PROVIDER_CACHE=1
is set and multiple provider installation blocks are present in the terraform configuration file it will not fall back to different sources even if the requested version is not found in the first source but it is present in the second source.If
TERRAGRUNT_PROVIDER_CACHE
is unset then it will successfully search allprovider_installation
paths.Steps To Reproduce
I could not really come up with a shorter way to reproduce this error but the steps below do reproduce it reliably.
mkdir -p terragrunt-bug/{module-null-3.1.1,module-null-3.2.3,targets/null-1,targets/null-2}
Full directory listing:
export TF_CLI_CONFIG_FILE=/home/snowman/terraform.tfrc
export TERRAGRUNT_PROVIDER_CACHE=1
cd targets
terragrunt run-all init
and experience the failure but only for one moduleExpected behavior
It's expected that the Terragrunt Provider Cache Server would fallback and search all
provider_installation
blocks similar to how the terragrunt/tofu commands do without the cache server.If I unset
TERRAGRUNT_PROVIDER_CACHE
and run the same command I get a successful run (after cleaning the terragrunt cache at ~/.cache/terragrunt).Nice to haves
Versions
Additional context
In case it's needed this is the contents of the mirror folders referenced above.
The text was updated successfully, but these errors were encountered: