-
Notifications
You must be signed in to change notification settings - Fork 377
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
Helm release with AWS ECR private repository #1136
Comments
I encountered a very similar problem today and was able to solve it. The actual error message is obscured, even at the highest level of TF_LOG, but after attaching a debugger and with a mild bit of hacking, I was able to see the message: {"errors":[{"code":"DENIED","message":"Your Authorization Token is invalid."}]} I was able to get the same error by calling My mistake was to use In your specific case, you have specified My debugging idea for you is to use local_file to write out the username, password and server, and then try to use |
I battled with the same error for a long time but I did not share @steverukuts issue of My issue was that my EKS cluster was in one region and my ECR was in another region, so I needed to use data "aws_ecr_authorization_token" "token" {
provider = aws.us-west-2
} |
I just saw a similar error - for me it came down to this: I only set |
This was my issue exactly. After addign the provider the error 400 is gone now. |
Terraform, Provider, Kubernetes and Helm Versions
Affected Resource(s)
Terraform Configuration Files
Debug Output
╷
│ Error: could not login to OCI registry "ACCOUNT_ID.dkr.ecr.us-east-2.amazonaws.com": login attempt to https://ACCOUNT_ID.dkr.ecr.us-east-2.amazonaws.com/v2/ failed with status: 400 Bad Request
│
│ with provider["registry.terraform.io/hashicorp/helm"],
│ on main.tf line 45, in provider "helm":
│ 45: provider "helm" {
│
╵
2023-05-17T15:19:17.930+0300 [TRACE] statemgr.Filesystem: removing lock metadata file .terraform.tfstate.lock.info
2023-05-17T15:19:17.931+0300 [TRACE] statemgr.Filesystem: unlocked by closing terraform.tfstate
2023-05-17T15:19:17.934+0300 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF"
2023-05-17T15:19:17.954+0300 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/helm/2.9.0/windows_amd64/terraform-provider-helm_v2.9.0_x5.exe pid=7092
2023-05-17T15:19:17.969+0300 [DEBUG] provider: plugin exited
Steps to Reproduce
terraform apply
Expected Behavior
Helm chart should be installed from AWS ECR private repo
Actual Behavior
Helm provider not able to get Helm chart from AWS ECR private repo
Important Factoids
References
Community Note
The text was updated successfully, but these errors were encountered: