Skip to main content

The CDK Construct Library for AWS::ECR

Project description

Amazon ECR Construct Library


Stability: Stable


This package contains constructs for working with Amazon Elastic Container Registry.

Repositories

Define a repository by creating a new instance of Repository. A repository holds multiple verions of a single container image.

const repository = new ecr.Repository(this, 'Repository');

Automatically clean up repositories

You can set life cycle rules to automatically clean up old images from your repository. The first life cycle rule that matches an image will be applied against that image. For example, the following deletes images older than 30 days, while keeping all images tagged with prod (note that the order is important here):

repository.addLifecycleRule({ tagPrefixList: ['prod'], maxImageCount: 9999 });
repository.addLifecycleRule({ maxImageAgeDays: cdk.Duration.days(30) });

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

aws-cdk.aws-ecr-1.2.0.tar.gz (54.4 kB view details)

Uploaded Source

Built Distribution

aws_cdk.aws_ecr-1.2.0-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file aws-cdk.aws-ecr-1.2.0.tar.gz.

File metadata

  • Download URL: aws-cdk.aws-ecr-1.2.0.tar.gz
  • Upload date:
  • Size: 54.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

File hashes

Hashes for aws-cdk.aws-ecr-1.2.0.tar.gz
Algorithm Hash digest
SHA256 674078adfc2cbb846d762cc35282dab42f720d0f0fe542d0fddf972126ce26ca
MD5 e5a1117bd135b8fd05a07d5af0d2a890
BLAKE2b-256 d6a940d5949dcb3ec9836b387ca05ab9fc6a1eaad2c2e7d74e26e0f11d34cd95

See more details on using hashes here.

File details

Details for the file aws_cdk.aws_ecr-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: aws_cdk.aws_ecr-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 52.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.5

File hashes

Hashes for aws_cdk.aws_ecr-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9fa641114f73ffff85de28f003be840cad2060ca24e83eb10bc48571b626a61f
MD5 c546eefe877fbcc70f899d7ee030f374
BLAKE2b-256 4d2002cfa6d1bdba944d46a5de97192b6978ba0a8a44682619ecf160626fa84d

See more details on using hashes here.

Supported by

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