aws / aws/aws-toolkit-azure-devops
ECRPushImage and ECRPullImage Task is Not Able to Push Image in me-south-1 (Bahrain) region
- Dominant language
- TypeScript
- Stars
- 258
- Forks
- 114
- PR merge metrics
- No merged PRs in 30d
Description
Hi Team,
I am building an Azure DevOps pipeline to push a docker image to the ECR repository in the Bahrain region, however, I am able to push images to other regions but when I select Bahrain, it fails with the below error:
##[error]Error: Failed to obtain authorization token to log in to ECR, error: UnrecognizedClientException: The security token included in the request is invalid
This error we are getting only when we are selecting the Bahrain region in the task drop-down.
When manually trying to push the image it works fine from aws cli
Edit: I just tried PullImage task with Bahrain region, but got the same error. But when I used other regions, image pulled without any error. Not sure what is blocking this AWS Toolkit tasks to use Bahrain region.
Contributor guide
Research direction
Start by reproducing the ECRPushImage and ECRPullImage tasks with the me-south-1 region, then compare their authorization-token behavior with the AWS CLI and another region. Done means both tasks can authenticate and push or pull the Docker image in Bahrain without the invalid security-token error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, docker, typescript
- Domain
- cloud, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100