{"id":22382489,"url":"https://github.com/jcoreio/aws-ecr-utils","last_synced_at":"2026-02-09T00:06:57.513Z","repository":{"id":78315118,"uuid":"456714293","full_name":"jcoreio/aws-ecr-utils","owner":"jcoreio","description":"utilities for working with AWS Elastic Container Registry","archived":false,"fork":false,"pushed_at":"2025-12-05T19:26:48.000Z","size":844,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T08:12:03.464Z","etag":null,"topics":["aws","aws-sdk","ecr"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcoreio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-07T23:33:16.000Z","updated_at":"2025-12-05T19:25:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5f4d5a7-64d6-4a91-9bf2-2a798f5c6a80","html_url":"https://github.com/jcoreio/aws-ecr-utils","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/jcoreio/aws-ecr-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Faws-ecr-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Faws-ecr-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Faws-ecr-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Faws-ecr-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcoreio","download_url":"https://codeload.github.com/jcoreio/aws-ecr-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcoreio%2Faws-ecr-utils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29097768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-04T21:05:08.033Z","status":"ssl_error","status_checked_at":"2026-02-04T21:04:53.031Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-sdk","ecr"],"created_at":"2024-12-05T00:13:13.274Z","updated_at":"2026-02-04T22:17:06.447Z","avatar_url":"https://github.com/jcoreio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jcoreio/aws-ecr-utils\n\n[![CircleCI](https://circleci.com/gh/jcoreio/aws-ecr-utils.svg?style=svg)](https://circleci.com/gh/jcoreio/aws-ecr-utils)\n[![Coverage Status](https://codecov.io/gh/jcoreio/aws-ecr-utils/branch/master/graph/badge.svg)](https://codecov.io/gh/jcoreio/aws-ecr-utils)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)\n[![npm version](https://badge.fury.io/js/%40jcoreio%2Faws-ecr-utils.svg)](https://badge.fury.io/js/%40jcoreio%2Faws-ecr-utils)\n\n# Table of Contents\n\n- [@jcoreio/aws-ecr-utils](#jcoreioaws-ecr-utils)\n- [Table of Contents](#table-of-contents)\n  - [`copyECRImage(options)`](#copyecrimageoptions)\n    - [Options](#options)\n      - [`options.from.imageUri`, `options.to.imageUri` (`string`, **required**)](#optionsfromimageuri-optionstoimageuri-string-required)\n      - [`options.from.ecr`, `options.to.ecr` (`AWS.ECR`, _optional_)](#optionsfromecr-optionstoecr-awsecr-optional)\n      - [`options.from.awsConfig`, `options.to.awsConfig` (`AWS.ConfigurationOptions`, _optional_)](#optionsfromawsconfig-optionstoawsconfig-awsconfigurationoptions-optional)\n    - [Returns (`Promise\u003cvoid\u003e`)](#returns-promisevoid)\n  - [`ecrImageExists(options)`](#ecrimageexistsoptions)\n    - [Options](#options-1)\n      - [`options.ecr` (`AWS.ECR`, _optional_)](#optionsecr-awsecr-optional)\n      - [`options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)](#optionsawsconfig-awsconfigurationoptions-optional)\n      - [`options.imageUri` (`string`, _optional_)](#optionsimageuri-string-optional)\n      - [`options.registryId` (`string`, _optional_)](#optionsregistryid-string-optional)\n      - [`options.repositoryName` (`string`, _optional_)](#optionsrepositoryname-string-optional)\n      - [`options.imageTag` (`string`, _optional_)](#optionsimagetag-string-optional)\n    - [Returns (`Promise\u003cboolean\u003e`)](#returns-promiseboolean)\n  - [`loginToECR(options)`](#logintoecroptions)\n    - [Options](#options-2)\n      - [`options.ecr` (`AWS.ECR`, _optional_)](#optionsecr-awsecr-optional-1)\n      - [`options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)](#optionsawsconfig-awsconfigurationoptions-optional-1)\n    - [Returns (`Promise\u003cvoid\u003e`)](#returns-promisevoid-1)\n  - [`parseECRImageUri(imageUri)`](#parseecrimageuriimageuri)\n    - [Options](#options-3)\n      - [`imageUri` (`string`, **required**)](#imageuri-string-required)\n    - [Returns (`object`)](#returns-object)\n  - [`tagECRImage(options)`](#tagecrimageoptions)\n    - [Options](#options-4)\n      - [`options.ecr` (`AWS.ECR`, _optional_)](#optionsecr-awsecr-optional-2)\n      - [`options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)](#optionsawsconfig-awsconfigurationoptions-optional-2)\n      - [`options.imageUri` (`string`, **required**)](#optionsimageuri-string-required)\n      - [`options.tags` (`string[]`, **required**)](#optionstags-string-required)\n    - [Returns (`Promise\u003cvoid\u003e`)](#returns-promisevoid-2)\n  - [`upsertECRRepository(options)`](#upsertecrrepositoryoptions)\n    - [Options](#options-5)\n      - [`options.ecr` (`AWS.ECR`, _optional_)](#optionsecr-awsecr-optional-3)\n      - [`options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)](#optionsawsconfig-awsconfigurationoptions-optional-3)\n      - [`options.repositoryName` (`string`, **required**)](#optionsrepositoryname-string-required)\n    - [Returns (`Promise\u003cAWS.ECR.Repository\u003e`)](#returns-promiseawsecrrepository)\n\n## `copyECRImage(options)`\n\nCopies an image between ECRs (potentially between accounts). Requires Docker to be installed and the `docker` command to be on your path.\n\n### Options\n\n#### `options.from.imageUri`, `options.to.imageUri` (`string`, **required**)\n\nThe URIs of the source and destination ECR images\n\n#### `options.from.ecr`, `options.to.ecr` (`AWS.ECR`, _optional_)\n\nThe ECR clients to use for the source and destination images\n\n#### `options.from.awsConfig`, `options.to.awsConfig` (`AWS.ConfigurationOptions`, _optional_)\n\nThe AWS service options to use if `options.from.ecr` and `options.to.ecr` aren't provided\n\n### Returns (`Promise\u003cvoid\u003e`)\n\nA promise that will resolve once the image has been pulled from the source repository and pushed to the destination repository.\n\n## `ecrImageExists(options)`\n\nDetermines if an ECR image exists.\n\n### Options\n\n#### `options.ecr` (`AWS.ECR`, _optional_)\n\nThe ECR client to use\n\n#### `options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)\n\nThe AWS service options to use if `options.ecr` isn't provided\n\n#### `options.imageUri` (`string`, _optional_)\n\nThe URI of the image to look for. You must provide either this or `options.registryId`,\n`options.repositoryName`, or `imageTag`.\n\n#### `options.registryId` (`string`, _optional_)\n\nThe ID of the ECR (same as your AWS account number?)\n\n#### `options.repositoryName` (`string`, _optional_)\n\nThe name of the ECR repository\n\n#### `options.imageTag` (`string`, _optional_)\n\nThe ECR image tag\n\n### Returns (`Promise\u003cboolean\u003e`)\n\nA promise that will resolve to true if the image exists and false otherwise.\n\n## `loginToECR(options)`\n\nLogs the local Docker client into the given ECR. Requires Docker to be installed and the `docker` command to be on your path.\n\n### Options\n\n#### `options.ecr` (`AWS.ECR`, _optional_)\n\nThe ECR client to use\n\n#### `options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)\n\nThe AWS service options to use if `options.ecr` isn't provided\n\n### Returns (`Promise\u003cvoid\u003e`)\n\nA promise that will resolve once logged in.\n\n## `parseECRImageUri(imageUri)`\n\nParses the given ECR image URI.\n\n### Options\n\n#### `imageUri` (`string`, **required**)\n\nThe URI of the ECR image to parse.\n\n### Returns (`object`)\n\nAn object with the following properties:\n\n```ts\n{\n  registryId: string\n  region: string\n  repositoryName: string\n  imageTag: string\n}\n```\n\n## `tagECRImage(options)`\n\nAdds additional tags to an existing ECR image.\n\n### Options\n\n#### `options.ecr` (`AWS.ECR`, _optional_)\n\nThe ECR client to use\n\n#### `options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)\n\nThe AWS service options to use if `options.ecr` isn't provided\n\n#### `options.imageUri` (`string`, **required**)\n\nThe URI of the ECR image to add tags to\n\n#### `options.tags` (`string[]`, **required**)\n\nThe tags to add to the ECR image\n\n### Returns (`Promise\u003cvoid\u003e`)\n\nA promise that will resolve once the tags have been added.\n\n## `upsertECRRepository(options)`\n\nCreates an ECR repository if it doesn't already exist.\n\n### Options\n\n#### `options.ecr` (`AWS.ECR`, _optional_)\n\nThe ECR client to use\n\n#### `options.awsConfig` (`AWS.ConfigurationOptions`, _optional_)\n\nThe AWS service options to use if `options.ecr` isn't provided\n\n#### `options.repositoryName` (`string`, **required**)\n\nThe name of the repository to upsert\n\n### Returns (`Promise\u003cAWS.ECR.Repository\u003e`)\n\nThe found or created ECR repository\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Faws-ecr-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcoreio%2Faws-ecr-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcoreio%2Faws-ecr-utils/lists"}