Last active
September 12, 2018 16:36
-
-
Save yogeshlonkar/8a05d77e9f240b67e89fa692890ac9eb to your computer and use it in GitHub Desktop.
aws ear generate dockerconfigjson
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws ecr get-authorization-token --output json | \ | |
jq -n 'input.authorizationData | {auths: (reduce .[] as $d ({}; . + {($d.proxyEndpoint|sub("https?://";"")): {auth:$d.authorizationToken}}))}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment