https://pulumi.com logo
#general
Title
# general
b

brave-salesmen-42327

02/17/2019, 4:33 PM
Is there a best practice for logging into an aws ecr repository? For example, using the aws javascript sdk one can call
ecr.getAuthorizationToken()
and pass that to
docker login
to allow docker to push images. The CLI solution is to execute something like:
$(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email)
. Is this baked into pulumi somewhere or do I need to wrangle all that manually?
w

white-balloon-205

02/17/2019, 5:52 PM
Here’s an example: https://github.com/pulumi/pulumi-docker/blob/master/examples/aws/index.ts We will have something that does all this automatically for you in the
awsx
library as well.
👍 1
b

brave-salesmen-42327

02/17/2019, 7:30 PM
That example is perfect, thanks! ❤️ Pulumi