Is there a best practice for logging into an aws e...
# general
b
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
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
That example is perfect, thanks! ❤️ Pulumi