@aws-cdk_aws-apprunner-alpha.EcrProps

interface EcrProps 🔹

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.EcrProps
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#EcrProps
Javasoftware.amazon.awscdk.services.apprunner.alpha.EcrProps
Pythonaws_cdk.aws_apprunner_alpha.EcrProps
TypeScript (source)@aws-cdk/aws-apprunner-alpha » EcrProps

Properties of the image repository for Source.fromEcr().

Example

import * as ecr from 'aws-cdk-lib/aws-ecr';

new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromEcr({
    imageConfiguration: { port: 80 },
    repository: ecr.Repository.fromRepositoryName(this, 'NginxRepository', 'nginx'),
    tagOrDigest: 'latest',
  }),
});

Properties

NameTypeDescription
repository🔹IRepositoryRepresents the ECR repository.
imageConfiguration?🔹ImageConfigurationThe image configuration for the image from ECR.
tag?⚠️stringImage tag.
tagOrDigest?🔹stringImage tag or digest (digests must start with sha256:).

repository🔹

Type: IRepository

Represents the ECR repository.


imageConfiguration?🔹

Type: ImageConfiguration (optional, default: no image configuration will be passed. The default port will be 8080.)

The image configuration for the image from ECR.

See also: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port


tag?⚠️

⚠️ Deprecated: use tagOrDigest

Type: string (optional, default: 'latest')

Image tag.


tagOrDigest?🔹

Type: string (optional, default: 'latest')

Image tag or digest (digests must start with sha256:).