Took a lot of frustration/trial and error to finally figure out this was actually related to auth so wanted to document it somewhere. I couldn't find much in the official docs about how to use this functionality.
To Reproduce
Have a terraform module that has been published to a private gitlab registry (maybe any private registry, but I tested on gitlab specifically)
Try to use it in terragrunt.hcl without configuring an auth token:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for raising this issue.
Took a lot of frustration/trial and error to finally figure out this was actually related to auth so wanted to document it somewhere. I couldn't find much in the official docs about how to use this functionality.
To Reproduce
Init/plan/apply:
As expected, this fails. But it fails like this:
Hmm "error receiving HTTP data". Bit vague.
It works as expected if you do this, though:
Expected behavior An error message that makes it clear the "error receiving HTTP data" was because you were not authorized to :)
Versions