You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On inspection of the log file ~/.ecr/log/ecr-login.log.2022-08-05-13 I see the following:
2022-08-05T13:28:14Z [DEBUG] Checking file cache for 000000000000
2022-08-05T13:28:14Z [DEBUG] Calling ECR.GetAuthorizationToken for 000000000000
2022-08-05T13:28:14Z [ERROR] Error retrieving credentials: MissingEndpoint: 'Endpoint' configuration is required for this service
Resolution
I attempted to update go.mod to use the following:
But I'm not much of a Go programmer, so couldn't get the container to build properly.
Workaround
As a workaround I added the updated binary after the container is built which solved the problem.
FROM concourse/docker-image-resource:1.6.3
ADD --chown=root:root https://amazon-ecr-credential-helper-releases.s3.us-east-2.amazonaws.com/0.6.0/linux-amd64/docker-credential-ecr-login /opt/resource/ecr-login
RUN chmod +x /opt/resource/ecr-login
This is my attempt at a PR: #347
Unfortunately the build fails with:
Step 16/27 : RUN go build -o /assets/ecr-login github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cmd
---> Running in 3fbc557b1092
no required module provides package github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cmd; to add it:
go get github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cmd
Running the suggested command errors with:
root@09a0f42ba1b0:/concourse/docker-image-resource# go get github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cmd
go: module github.com/awslabs/amazon-ecr-credential-helper/ecr-login@upgrade found (v0.0.0-20220802171026-617dc7abb2ea), but does not contain package github.com/awslabs/amazon-ecr-credential-helper/ecr-login/cmd
I'm not really sure how to proceed here. My guess is that the ecr-login package has been moved renamed?
This resource is incompatible with ECR on AWS GovCloud. This is because the version of Amazon ECR Credentials Helper is very out of date.
Reproduction
I get the following build output from concourse:
On inspection of the log file
~/.ecr/log/ecr-login.log.2022-08-05-13
I see the following:Resolution
I attempted to update
go.mod
to use the following:But I'm not much of a Go programmer, so couldn't get the container to build properly.
Workaround
As a workaround I added the updated binary after the container is built which solved the problem.
Related Issues
The text was updated successfully, but these errors were encountered: