Registry /
aws / cdk-docker-image-deployment
Install & Compatibility
Where this runs
tested against v0.0.986 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 374MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 18.3s · import 0.000s · 374MB
412MB installed
● package 412MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DockerImageDeployment
✓ from cdk_docker_image_deployment import DockerImageDeployment
✗ from cdk-docker-image-deployment import DockerImageDeployment
Hyphens not allowed in Python imports; use underscores.
Source
✓ from cdk_docker_image_deployment import Source
Deploys a Docker image from DockerHub to ECR. Replace placeholders with actual account ID and region.
from aws_cdk import App, Stack
from cdk_docker_image_deployment import DockerImageDeployment, Source
app = App()
stack = Stack(app, "MyStack")
DockerImageDeployment(stack, "DeployImage",
source=Source.docker_hub("public.ecr.aws/docker/library/nginx:latest"),
destination=DockerImageName("<account-id>.dkr.ecr.<region>.amazonaws.com/my-nginx:latest")
)
app.synth()
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'cdk-docker-image-deployment'
Trying to import with hyphens instead of underscores.
fixInstall with 'pip install cdk-docker-image-deployment' and import as 'cdk_docker_image_deployment'.
jsii.errors.JSIIError: Your application requires a newer version of the AWS CDK library. This version is ...
Incompatible CDK version (e.g., using v1 with v2 construct).
fixUpdate your CDK app to aws-cdk-lib v2.
Upgrade
Version history
0.0.986latest on PyPI · released Mar 27, 2026
Audit
Dependencies
aws-cdk-librequiredPeer dependency; required for CDK constructs.