CmdID

CmdID / aws / aws ecr

aws ecr get-authorization-token

Retrieves an authorization token. AWS CLI reference

1 example 1 option Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To get an authorization token for your default registry

The following get-authorization-token example command gets an authorization token for your default registry.

aws ecr get-authorization-tokenIdentify
Its output
{
    "authorizationData": [
        {
            "authorizationToken": "QVdTOkN...",
            "expiresAt": 1448875853.241,
            "proxyEndpoint": "https://123456789012.dkr.ecr.us-west-2.amazonaws.com"
        }
    ]
}

For more information, see Private registry authentication in Amazon ECR in the Amazon ECR User Guide.

Options

1 in the AWS CLI reference
--registry-idsA list of Amazon Web Services account IDs that are associated with the registries for which to get AuthorizationData objects.