DocsAWS 101BlogServices

ECR

Container registry — repositories, images, layer uploads, lifecycle policies, image tag mutability, scanning configuration.

JSON-RPC (X-Amz-Target) multi-tenant 26 operations

Quick start

import boto3
ecr = boto3.client("ecr", endpoint_url="http://localhost:4566",
                   region_name="us-east-1",
                   aws_access_key_id="test", aws_secret_access_key="test")
ecr.create_repository(repositoryName="app")

Supported operations

26 operations exposed by this service as of MiniStack 1.4.21. Extracted directly from the handler dispatch in the source module.

BatchCheckLayerAvailability BatchDeleteImage BatchGetImage CompleteLayerUpload CreateRepository DeleteLifecyclePolicy DeleteRepository DeleteRepositoryPolicy DescribeImages DescribeRegistry DescribeRepositories GetAuthorizationToken GetDownloadUrlForLayer GetLifecyclePolicy GetRepositoryPolicy InitiateLayerUpload ListImages ListTagsForResource PutImage PutImageScanningConfiguration PutImageTagMutability PutLifecyclePolicy SetRepositoryPolicy TagResource UntagResource UploadLayerPart

CloudFormation

The CloudFormation engine provisions these resource types via this service:

AWS::ECR::Repository

See CloudFormation engine for intrinsic support and lifecycle details.

Known limitations

  • Image scanning is not implemented — only PutImageScanningConfiguration stores the scanOnPush flag; there is no StartImageScan / DescribeImageScanFindings.
  • GetAuthorizationToken returns a fixed token; Docker login works against MiniStack but the token has no AWS meaning.

Source

  • ministack/services/ecr.py

Read the source to verify the ops list above — dispatch tables and handler functions are the ground truth.