I have tried using "atlassian/aws-ecr-push-image:1.4.2" to push an image to an existing repository in my AWS account. But unfortunately the pipe is only being able push to private repositories.
When i create a repository in public registry and try the same getting this following error
"The repository with name 'xxxxxxxx' does not exist in the registry with id 'xxxxxxxxx'"
@siddharthjoshi, @Kushan Harshana Gunasekera hi. We released new version of pipe:
- pipe: atlassian/aws-ecr-push-image:1.5.0 variables: AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY IMAGE_NAME: my-docker-image ECR_PUBLIC: "true" PUBLIC_REGISTRY_ALIAS: registry-alias
with support of pushing images to ECR Public Registry.
Please, provide us feedback.
Regards, Igor.
I would love to try this out @Igor Stoyanov , Will update one of my repositories and come back to you !!!
Thanks,
Siddharth Joshi K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to hear that @Igor Stoyanov , I'll try it out. You have been a great help, Thank you @Igor Stoyanov .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here I've mentioned the reasons why this is happen in the Stack Overflow. Please have a look.
https://stackoverflow.com/q/69274998/6194097
I think the "atlassian/aws-ecr-push-image:1.4.2" image doesn't support Amazon ECR Public repositories. I had the same issue, what I did was manually installed the AWS CLI version 2 in the pipeline and ran all the push commands.
That's it, but you must provide the region as us-east-1. Otherwise you'll get the same error again and again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, funnily i actually did the same :D
And even i faced this weird region (us-east-1) restrictions. But as you mentioned "atlassian/aws-ecr-push-image:1.4.2" does not seem to support public repo, as by default it's looking for a repo in the mentioned name in the private ECR and there were no parameters we could use to make it look in the public repo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for your question!
Have you provided all parameters required parameters for pipe?
Do you have permissions to push images to that repository?
It would be nice if you provide us with more details to help you: pipeline configuration, logs, etc.
Cheers,
Oleksandr Kyrdan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Oleksandr Kyrdan
I'm having the same issue, the thing is Amazon ECR now supports public repositories. The aws ecr command is using for the private repositories and aws ecr-public command is using for the public repositories and public repositories are only work with us-east-1 region. I've addressed this issue in the Stack Overflow, please have a look for more details.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Oleksandr Kyrdan What @Kushan Harshana Gunasekera mentions is correct, to push to the public repo we need to use "aws ecr-public". I have permission to push to the repo, i have already pushed few images to my private repo and also i was able to push to public repo by writing the commands manually. The code below show how i managed to push the code to public ECR
```
```
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.