https://pulumi.com logo
Title
o

orange-microphone-43589

03/18/2021, 11:52 AM
hi, how do i pull an image from a private registry (on gcp or aws) to local. i tried something like this:
const xyz = new docker.RemoteImage("xyz", {
  name: '<http://1234567899.dkr.ecr.us-east-1.amazonaws.com/myimage|1234567899.dkr.ecr.us-east-1.amazonaws.com/myimage>'
})
but it failed with
Unable to read Docker image into resource: Unable to pull image...no basic auth credentials
(i have AWS keys set in my shell) How do i configure the auth, (i couldn't find any options to configure it in the remoteImage doc)
w

worried-knife-31967

03/18/2021, 12:56 PM
It's probably worth nothing that ECR has a weird login process that isn't just you're AWS keys. I'm not sure how Pulumi handles that though.
o

orange-microphone-43589

03/18/2021, 1:06 PM
i did configure docker locally with the ecr credentials using
aws ecr get-login-password --region us-east-2
and I'm able to pull the same image with
docker pull
w

worried-knife-31967

03/18/2021, 4:37 PM
i supppose it depends if they're shelling out to that really