Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to download terraform modules from Jfrog artifactory private registry using tfr or https #3403

Open
nveeramn opened this issue Sep 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@nveeramn
Copy link

nveeramn commented Sep 13, 2024

Describe the bug

Terragrunt fails to download a Terraform module from a JFrog Artifactory private registry, resulting in an HTTP error. The error occurs when attempting to download the module using the tfr:// or https protocol

Steps To Reproduce

terraform {
  source = "tfr://<your_artifactory_domain>/artifactory/aws/mymod?version=1.0.0"
}
ERRO[0000] downloading source url tfr://<your_artifactory_domain>/artifactory/aws/mymod?version=1.0.0
1 error occurred:
* error downloading 'tfr://<your_artifactory_domain>/artifactory/aws/mymod?version=1.0.0': Error downloading module from https://<your_artifactory_domain>/artifactory/api/terraform/v1/modules/artifactory/aws/mymod/1.0.0/download: error receiving HTTP data

also tried using https but doesnt seem to like the credentials and throws 401 error

terraform {
  source = "https://<your_artifactory_domain>/artifactory/aws/mymod?version=1.0.0"
}

Seeing 401 error. Tried setting up TG_TF_REGISTRY_TOKEN but couldnt find any luck, also made sure that the same creds works with curl

Expected behavior

Terragrunt should successfully download the specified module from the Artifactory registry without encountering HTTP errors.

@nveeramn nveeramn added the bug Something isn't working label Sep 13, 2024
@nveeramn nveeramn changed the title Unable to download terraform modules from Jfrog artifactory private registry using tfr Unable to download terraform modules from Jfrog artifactory private registry using tfr or https Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant