token-injectable-docker-builder
Version:
The TokenInjectableDockerBuilder is a flexible AWS CDK construct that enables the usage of AWS CDK tokens in the building, pushing, and deployment of Docker images to Amazon Elastic Container Registry (ECR). It leverages AWS CodeBuild and Lambda custom re
17 lines (16 loc) • 693 B
TypeScript
import { Repository } from 'aws-cdk-lib/aws-ecr';
import { Key } from 'aws-cdk-lib/aws-kms';
import { Construct } from 'constructs';
export interface BuilderEcrRepositoryOptions {
readonly kmsEncryption: boolean;
readonly encryptionKey?: Key;
}
/**
* Create an ECR repository for a builder.
*
* SAFETY: tagged images are never deleted. Lambda pins images by digest
* internally, so deleting an in-use tagged image would make the next Lambda
* config update fail with "Image ID cannot be found". Untagged images are
* cleaned up after 30 days.
*/
export declare function createBuilderEcrRepository(scope: Construct, id: string, options: BuilderEcrRepositoryOptions): Repository;