AWS ECR Push Image Specify Registry ID

Dave McDermid February 13, 2020

With the aws-ecr-push-image pipe it would be really useful to be able to pass the Registry ID (AWS Account ID) as a parameter. This is required when the user belongs to a different AWS account than the registry it is pushing to.

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Alexander Zhukov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 18, 2020

Hi @Dave McDermid , thank you for your suggestion, will consider adding this feature to the pipe.

Dave McDermid February 18, 2020

Great, thanks.

siddharthjoshi September 14, 2021

@Dave McDermid Has this been implemented yet ? 

Would a registry id be needed to even push to a public registry within the same account, in my case I am getting the following error and during build the repository is being searched under private only and not public

 

"The repository with name 'xxxxxxxx' does not exist in the registry with id 'xxxxxxxxx'"

Like Anton Patronov likes this
Anton Patronov December 5, 2021

@Alexander Zhukovdo you have a ticket we this feature request?

Like Einar Coutin likes this
Einar Coutin July 6, 2022

This hasn't been implemented yet, either implement this or please add support for AWS STS Assume Role rather than go overboard with OIDC. Some of us have our runners in AWS and would like to keep them separate from the devs while still giving them visibility into the registry for things like container image scan results. 
Either an STS assume role of specifying the account ID rather than access keys or simply specifying the AWS account Id and combining that with a Resource Policy on the ECR repo itself.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events