aws ecr get-authorization-token
Retrieves an authorization token. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
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-tokenIdentifyIts 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
--registry-idsA list of Amazon Web Services account IDs that are associated with the registries for which to get AuthorizationData objects.