amazon-ecr-plugin icon indicating copy to clipboard operation
amazon-ecr-plugin copied to clipboard

Could not find credentials for me-central-1 region

Open fayas-akram opened this issue 2 years ago • 4 comments

Jenkins and plugins versions report

Environment
CLOUD: AWS
ENV: Production

What Operating System are you using (both controller, and any agents involved in the problem)?

amazon linux 2.

Reproduction steps

  1. Add build steps for UAE region and try to login ECR docker.withRegistry('https://xxxxxx.dkr.ecr.me-central-1.amazonaws.com', 'ecr:me-central-1:xxxxxxx') {}

Expected Results

Success

Actual Results

ERROR: Could not find credentials matching ecr:me-central-1:XXXXXX

Anything else?

the plugging works with other regions. it fails for me-central-1 region

Are you interested in contributing a fix?

Yes

fayas-akram avatar Dec 06 '23 05:12 fayas-akram

Looks like #31?

TobiX avatar Dec 07 '23 08:12 TobiX

Could you provide me with some test credentials privately? It's okay if they expire after some weeks, but I'd need to reproduce the issue, so that I'll be able to fix it...

TobiX avatar Dec 07 '23 09:12 TobiX

If I am not wrong,this issue comes when the credentials you have declared in Jenkins / credentials section are NOT of kind "AWS credentials". But, of some other type like - "username and password"

Tesseract99 avatar Dec 25 '23 11:12 Tesseract99

use AWS credentials type

najmi9 avatar Jan 18 '24 12:01 najmi9

Closing due to missing information. Feel free to reopen if the issue persists.

TobiX avatar Jun 27 '24 11:06 TobiX