Skip to main content

CDK construct to deploy docker image to Amazon ECR

Project description

cdk-ecr-deployment

Release npm version PyPI npm PyPI - Downloads

CDK construct to synchronize single docker image between docker registries.

⚠️ Please use ^1.0.0 for cdk version 1.x.x, use ^2.0.0 for cdk version 2.x.x

Features

  • Copy image from ECR/external registry to (another) ECR/external registry
  • Copy an archive tarball image from s3 to ECR/external registry

⚠️ Currently construct can authenticate to external registry only with basic auth, but credentials are put as plain text to template and logs. See issue #171.

Examples

Run test/integ.ecr-deployment.ts

NO_PREBUILT_LAMBDA=1 npx cdk deploy -a "npx ts-node -P tsconfig.dev.json --prefer-ts-exts test/integ.ecr-deployment.ts"

Tech Details & Contribution

The core of this project relies on containers/image which is used by Skopeo. Please take a look at those projects before contribution.

To support a new docker image source(like docker tarball in s3), you need to implement image transport interface. You could take a look at docker-archive transport for a good start.

To test the lambda folder, make test.

Project details


Release history Release notifications | RSS feed

This version

2.3.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cdk-ecr-deployment-2.3.2.tar.gz (995.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cdk_ecr_deployment-2.3.2-py3-none-any.whl (994.7 kB view details)

Uploaded Python 3

File details

Details for the file cdk-ecr-deployment-2.3.2.tar.gz.

File metadata

  • Download URL: cdk-ecr-deployment-2.3.2.tar.gz
  • Upload date:
  • Size: 995.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for cdk-ecr-deployment-2.3.2.tar.gz
Algorithm Hash digest
SHA256 510dc69586c998b92b2f516a955e88a09f87aea9ba76fe7ccb312792c525af7b
MD5 14005098762e2d1725ff683581b6b6b9
BLAKE2b-256 ba81ca3ea3265c282b726a8515293c14209e580f7cdd329d22317f5c6734ca18

See more details on using hashes here.

File details

Details for the file cdk_ecr_deployment-2.3.2-py3-none-any.whl.

File metadata

  • Download URL: cdk_ecr_deployment-2.3.2-py3-none-any.whl
  • Upload date:
  • Size: 994.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for cdk_ecr_deployment-2.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8dbdde7fc6518a215ffa56b04d0820fa300937652f733b18db5ca130bc86c6be
MD5 570302b95d862cee762ebc6031d1f917
BLAKE2b-256 1657dfe1112cea01db04f7545c5929d48c0594b925a8295bf36efdde83460076

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page