Skip to content

Data Source: awsEcrpublicAuthorizationToken

The Public ECR Authorization Token data source allows the authorization token, token expiration date, user name, and password to be retrieved for a Public ECR repository.

\~> NOTE: This data source can only be used in the usEast1 region.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsEcrpublicAuthorizationToken.DataAwsEcrpublicAuthorizationToken(
  this,
  "token",
  {}
);

Attributes Reference

The following attributes are exported:

  • authorizationToken - Temporary IAM authentication credentials to access the ECR repository encoded in base64 in the form of userName:password.
  • expiresAt - Time in UTC RFC3339 format when the authorization token expires.
  • id - Region of the authorization token.
  • password - Password decoded from the authorization token.
  • userName - User name decoded from the authorization token.