- @jcoreio/aws-ecr-utils
- Table of Contents
Copies an image between ECRs (potentially between accounts). Requires Docker to be installed and the docker
command to be on your path.
The URIs of the source and destination ECR images
The ECR clients to use for the source and destination images
The AWS service options to use if options.from.ecr
and options.to.ecr
aren't provided
A promise that will resolve once the image has been pulled from the source repository and pushed to the destination repository.
Determines if an ECR image exists.
The ECR client to use
The AWS service options to use if options.ecr
isn't provided
The URI of the image to look for. You must provide either this or options.registryId
,
options.repositoryName
, or imageTag
.
The ID of the ECR (same as your AWS account number?)
The name of the ECR repository
The ECR image tag
A promise that will resolve to true if the image exists and false otherwise.
Logs the local Docker client into the given ECR. Requires Docker to be installed and the docker
command to be on your path.
The ECR client to use
The AWS service options to use if options.ecr
isn't provided
A promise that will resolve once logged in.
Parses the given ECR image URI.
The URI of the ECR image to parse.
An object with the following properties:
{
registryId: string
region: string
repositoryName: string
imageTag: string
}
Adds additional tags to an existing ECR image.
The ECR client to use
The AWS service options to use if options.ecr
isn't provided
The URI of the ECR image to add tags to
The tags to add to the ECR image
A promise that will resolve once the tags have been added.
Creates an ECR repository if it doesn't already exist.
The ECR client to use
The AWS service options to use if options.ecr
isn't provided
The name of the repository to upsert
The found or created ECR repository