skillfed

cdk-ecr-deployment

CDK construct to deploy docker image to Amazon ECR

cdk-ecr-deployment v4.2.49 548.5K downloads/30d#6,062 on PyPI190
Permissive license Apache-2.0 Active released

What it is and what it does

cdk-ecr-deployment is a CDK construct library that automates the deployment of Docker images to Amazon ECR and other registries. It wraps the container image transport layer used by Skopeo to enable image copying directly from CDK code, supporting sources like local Docker image assets, public registries, private registries (with credential management via AWS Secrets Manager), and S3 archives. The construct handles multi-architecture image indexes and can deploy to both private and public ECR repositories.

The package is designed for infrastructure-as-code workflows where Docker image deployment is part of a larger CDK stack. It abstracts away the complexity of registry authentication, image transport, and manifest handling, allowing developers to express image deployment as a declarative construct. The library relies on aws-cdk-lib, constructs, jsii, and publication for its core functionality.

Use it for:

  • Deploy a locally-built Docker image asset from CDK to a private ECR repository during stack synthesis.
  • Mirror a public container image (e.g., nginx) from Docker Hub to a private ECR for air-gapped or compliance-controlled environments.
  • Copy multi-architecture images with per-architecture tags to support both amd64 and arm64 deployments.
  • Restore a Docker image from an S3-stored tarball archive into ECR as part of disaster recovery or migration workflows.
  • Publish a private ECR image to AWS public ECR with automatic IAM permission attachment.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A CDK construct that copies Docker images between registries (ECR, external registries, or from S3 archives), including support for multi-architecture image indexes.

Yes. The package is actively maintained, has low install friction, carries a permissive license, and solves a concrete problem in CDK-based infrastructure workflows. It is production-stable (Development Status 5) with no known vulnerabilities. Install it if you need to automate Docker image deployment within AWS CDK stacks.

Install

cdk-ecr-deployment on PyPI

pip

pip install cdk-ecr-deployment

uv

uv add cdk-ecr-deployment

poetry

poetry add cdk-ecr-deployment

Installing cdk-ecr-deployment

Before you install

Low install friction with a pure Python wheel. Actively maintained as of 2026-08-14 with 190 repository stars. Requires aws-cdk-lib, constructs, jsii, and publication as runtime dependencies.

License in practice

Licensed under Apache-2.0 (permissive), allowing use in commercial and private projects with minimal restrictions beyond attribution and liability disclaimers.

Quickstart

from cdk_ecr_deployment import ECRDeployment, DockerImageName

ECRDeployment(self, "DeployImage",
    src=DockerImageName("nginx:latest"),
    dest=DockerImageName(f"{account_id}.dkr.ecr.us-west-2.amazonaws.com/my-nginx:latest")
)

Requires Python 3.10 or later and an active AWS CDK environment with appropriate IAM permissions for ECR operations.

Verify before relying

  • Whether the package handles image layer caching or optimization during copy operations.
  • Performance characteristics when copying large or multi-architecture images.
  • Whether retry logic and timeout configuration are user-configurable.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (>=3.10)
Install friction low — pure-Python wheel
Runtime dependencies 4 — aws-cdk-lib, constructs, jsii, publication
Maintenance actively maintained — 0 days since the last release
Last repo commit
First released
Downloads 548,458/month — #6,062 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: cdk_ecr_deployment-4.2.49-py3-none-any.whl

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed

Tags

docker image deployment ecrcdk ecr image copydocker registry synchronizationmulti-architecture image deploymentecr image transfer constructdocker image asset to ecrcontainer registry sync
aws-cdkcontainer-deploymentinfrastructure-as-code

More Build Tools packages

packaging

Provides reusable utilities for Python…

permissive · top 100 on PyPI

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

pip

pip is the standard installer for Python…

permissive · top 100 on PyPI

hatchling

Hatchling is a standards-compliant Python build…

permissive · top 100 on PyPI

grpcio-tools

Generates Python gRPC service stubs and message…

permissive · top 1,000 on PyPI

pre-commit

pre-commit is a framework for installing and…

permissive · top 1,000 on PyPI

aws-cdk.aws-ecr-assets

Bundles Docker images as AWS CDK assets,…

permissive · top 15,000 on PyPI

aws-cdk.aws-ecr

Provides AWS CDK constructs for defining,…

permissive · top 15,000 on PyPI

aws-cdk.aws-apprunner-alpha

Provides AWS CDK constructs for deploying…

permissive · top 15,000 on PyPI

aws-cdk.aws-s3-assets

Packages local files and directories for…

permissive · top 15,000 on PyPI

ecs-deploy

ecs-deploy is a CLI tool that simplifies Amazon…

permissive · top 15,000 on PyPI

docker-image-py

Parses Docker image reference strings into…

permissive · top 5,000 on PyPI

aws-cdk.aws-s3-deployment

Deploys files and directories to AWS S3 buckets…

permissive · top 15,000 on PyPI

cdk-cloudformation-datadog-monitors-monitor

Provides an AWS CDK L1 construct for defining…

permissive · top 15,000 on PyPI

aws-cdk.aws-secretsmanager

AWS CDK construct library for provisioning and…

permissive · top 15,000 on PyPI

aws-cdk.aws-lambda

Defines AWS Lambda functions and layers as…

permissive · top 15,000 on PyPI