@aws-cdk_aws-apprunner-alpha.EcrPublicProps

interface EcrPublicProps ๐Ÿ”น

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

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

Example

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

const vpc = new ec2.Vpc(this, 'Vpc', {
  ipAddresses: ec2.IpAddresses.cidr('10.0.0.0/16')
});

const vpcConnector = new apprunner.VpcConnector(this, 'VpcConnector', {
  vpc,
  vpcSubnets: vpc.selectSubnets({ subnetType: ec2.SubnetType.PUBLIC }),
  vpcConnectorName: 'MyVpcConnector',
});

new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromEcrPublic({
    imageConfiguration: { port: 8000 },
    imageIdentifier: 'public.ecr.aws/aws-containers/hello-app-runner:latest',
  }),
  vpcConnector,
});

Properties

NameTypeDescription
imageIdentifier๐Ÿ”นstringThe ECR Public image URI.
imageConfiguration?๐Ÿ”นImageConfigurationThe image configuration for the image from ECR Public.

imageIdentifier๐Ÿ”น

Type: string

The ECR Public image URI.


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 Public.

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