aws / aws/aws-toolkit-visual-studio
Fetching ECR authorization token to use to login with the docker CLI
- Dominant language
- No language data
- Stars
- 135
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
I try to publish container to ECR and get error with this message:
Fetching ECR authorization token to use to login with the docker CLI
aws-cli/2.17.42 Python/3.11.9 Windows/10 exe/AMD64
Client:
Version: 27.2.0
API version: 1.47
Go version: go1.21.13
Git commit: 3ab4256
Built: Tue Aug 27 14:17:17 2024
OS/Arch: windows/amd64
Context: desktop-linux
Server: Docker Desktop 4.34.0 (165256)
Engine:
Version: 27.2.0
API version: 1.47 (minimum version 1.24)
Go version: go1.21.13
Git commit: 3ab5c7d
Built: Tue Aug 27 14:15:15 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.20
GitCommit: 8fc6bcff51318944179630522a095cc9dbf9f353
runc:
Version: 1.1.13
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0
I have project web i need update to ECR to use Fargate.
**To Reproduce**
Steps to reproduce the behavior
example:
1. Go to publish to container.
2. and the moment to push, try to connect and get the error.
GTAApi could not be published as Container Image to Amazon Elastic Container Registry (ECR): Failed to push Docker Image due to the following reason:
denied: Your authorization token has expired. Reauthenticate and try again.
**Toolkit Logs**
... docker build: #20 writing image sha256:2aeca5f8751bc73d82ac311e99c8a385fbed9a836db2b03ff05bf07c9976fc51 done
... docker build: #20 naming to docker.io/library/gtaapi:latest done
... docker build: #20 DONE 0.0s
... docker build: View build details: docker-desktop://dashboard/build/desktop-linux/desktop-linux/4n4rz26ew7btdst1t8z3azxch
Fetching ECR authorization token to use to login with the docker CLI
Executing docker CLI login command
... invoking 'docker login'
... docker login: WARNING! Using --password via the CLI is insecure. Use --password-stdin.
... docker login: Login Succeeded
Found existing ECR Repository gtaapi
**Development System (please complete the following information):**
- Windows Version: Windows 11
- Visual Studio Version: Version 17.11.2
- AWS Toolkit for Visual Studio Version:
Toolkit Version: 1.57.0.0
Visual Studio: VS Community 2022
Visual Studio Version: 17.11.2
OS: Win32NT
OS Version: 10.0.22631.0
OS Architecture: X64
**Additional context**
Contributor guide
Research direction
No source file or test is named in the issue. Reproduce the Visual Studio container-publish flow with the listed Windows, Toolkit, Docker, and AWS CLI versions, then inspect the ECR login and push logs; done means the image pushes without the expired authorization-token error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100