@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Class EcrContainerImage

    Helper to create a container image from ECR using CDK context for versioning.

    Reads imageVersion from CDK context (--context imageVersion=<tag>). This allows passing the image tag from CI/CD workflows at deployment time.

    // Using defaults (Production account, stack's region)
    const { image, imageVersion } = EcrContainerImage.fromContext(this, 'AppImage', {
    repositoryName: 'my-app',
    });

    // Or with custom account/region
    const { image, imageVersion } = EcrContainerImage.fromContext(this, 'AppImage', {
    repositoryName: 'my-app',
    ecrAccountId: '123456789012',
    region: 'us-east-1',
    });
    Index

    Constructors

    Methods

    Constructors

    Methods