Skip to content

Instantly share code, notes, and snippets.

@yogeshlonkar
Last active September 12, 2018 16:36
Show Gist options
  • Save yogeshlonkar/8a05d77e9f240b67e89fa692890ac9eb to your computer and use it in GitHub Desktop.
Save yogeshlonkar/8a05d77e9f240b67e89fa692890ac9eb to your computer and use it in GitHub Desktop.
aws ear generate dockerconfigjson
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