The CDK Construct Library for AWS::ECR
Project description
Amazon Elastic Container Registry Construct Library
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: 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
Built Distribution
File details
Details for the file aws-cdk.aws-ecr-0.32.0.tar.gz
.
File metadata
- Download URL: aws-cdk.aws-ecr-0.32.0.tar.gz
- Upload date:
- Size: 50.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.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1afe011f9e9311fc3b1a32c8b7e0408bd65944b28893f4cbc60663d905c59514 |
|
MD5 | 8e038767c35555025739b0d7d3599db5 |
|
BLAKE2b-256 | d85820c83e1f277e00bf480924bc6fbe092d986b0088e01ff35852ff843aa563 |
File details
Details for the file aws_cdk.aws_ecr-0.32.0-py3-none-any.whl
.
File metadata
- Download URL: aws_cdk.aws_ecr-0.32.0-py3-none-any.whl
- Upload date:
- Size: 49.0 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.1 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56624a20279cc9c548008e9ef0b4f5ce50e5d03f2bb9ab061456b8c73d7c2c5 |
|
MD5 | 66abc6d9adaef88b81dae91c61e165f7 |
|
BLAKE2b-256 | e22d666b5ced1ec173e572d95a56c21f7246243e8fb177127fb185e05002af76 |