ECR and JFROG INTEGRATION

1.2k views Asked by At

Getting the below error while integrating jfrog with ecr repository in the option jfrog remote repository

Error testing pull replication config: Unable to identify target URL as an Artifactory instance: HTTP/1.1 400 Bad Request

Giving ECR url as - https://940810086075.dkr.ecr.ap-northeast-1.amazonaws.com/docker-lambda-testapp

Giving username as AWS and giving the token with below command aws ecr get-authorization-token

Giving ECR url as - https://940810086075.dkr.ecr.ap-northeast-1.amazonaws.com/docker-lambda-testapp

Giving username as AWS and giving the token with below command aws ecr get-authorization-token

2

There are 2 answers

1
Jesse Butler On

Looking at how the remote repository feature in Artifactory works, my assumption is that this would be an issue with authN.

ECR is a multi-tenant registry which uses AWS credentials for access to specific repos. 'Bad Request', without context, makes me think it might be looking to pull a token via the OCI endpoints, which doesn't work with ECR.

It is probably worth a ping with Jfrog to see what they think, this is just me guessing. Hope that helps!

2
shaibz On

Based on the error, it seems that you tried to create a pull replication from ECR. Replication is done only between Artifactory instances, you cannot create replication from a target instance that is not Artifactory. This is also documented here.

The alternative is to create a remote repository (not replication) to ECR and download artifacts from ECR through Artifactory on demand.