aws.ecr.get_authorization_token
Example SQL Queries
SELECT * FROMaws.ecr.get_authorization_token;Description
Retrieves an authorization token. An authorization token represents your IAM authentication credentials and can be used to access any Amazon ECR registry that your IAM principal has access to. The authorization token is valid for 12 hours.
The authorizationToken returned is a base64 encoded string that can be decoded and used in a docker login command to authenticate to a registry. The CLI offers an get-login-password command that simplifies the login process. For more information, see Registry authentication in the Amazon Elastic Container Registry User Guide.
Table Definition
| Column Name | Column Data Type |
|---|---|
| registry_ids Input Column A list of Amazon Web Services account IDs that are associated with the registries for which to get AuthorizationData objects. If you do not specify a registry, the default registry is assumed. | VARCHAR[] |
Show child fields
| |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| authorization_data A list of authorization token data objects that correspond to the registryIds values in the request. | STRUCT( |
Show child fields
| |