interface EcrProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.Alpha.EcrProps |
Go | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#EcrProps |
Java | software.amazon.awscdk.services.apprunner.alpha.EcrProps |
Python | aws_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
Name | Type | Description |
---|---|---|
repository | IRepository | Represents the ECR repository. |
image | Image | The image configuration for the image from ECR. |
tag? | string | Image tag. |
tag | string | Image tag or digest (digests must start with sha256: ). |
repository
Type:
IRepository
Represents the ECR repository.
imageConfiguration?
Type:
Image
(optional, default: no image configuration will be passed. The default port
will be 8080.)
The image configuration for the image from ECR.
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:
).