When attempting to download a Hashicorp module, we are getting an error similar to the following one:
Error: Error accessing remote module registry
│
│ Failed to retrieve a download URL for
│ registry.opentofu.org/hashicorp/vault/aws 0.17.0 from
│ registry.opentofu.org: the request failed after 2 attempts, please try
│ again later: 502 Bad Gateway returned from
│ https://registry.opentofu.org/v1/modules/hashicorp/vault/aws/0.17.0/download
╵
The reason for that is that when looking for the git tag in GitHub, we are using the information from ProviderRedirects when determining the namespace, causing us to look for the tag under github.com/opentofu/terraform-aws-vault instead of github.com/hashicorp/terraform-aws-vault
When attempting to download a Hashicorp module, we are getting an error similar to the following one:
The reason for that is that when looking for the git tag in GitHub, we are using the information from
ProviderRedirects
when determining the namespace, causing us to look for the tag undergithub.com/opentofu/terraform-aws-vault
instead ofgithub.com/hashicorp/terraform-aws-vault