> **Experimental**
>
> `@aws-cdk/aws-apprunner-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# EcrProps

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

Extends: EcrProps
Used as props by: EcrSource

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/service.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0-alpha.0/packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts#L349)

## Example

```ts
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

- `imageConfiguration`: [ImageConfiguration](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.ImageConfiguration.html) — The image configuration for the image from ECR.

  **Default:** no image configuration will be passed. The default `port` will be 8080.

- `repository`: [IRepository](/cdk/api/v2/docs/aws-cdk-lib.aws_ecr.IRepository.html) (required) — Represents the ECR repository.

- `tag`: string = 'latest' — use `tagOrDigest`

- `tagOrDigest`: string = 'latest' — Image tag or digest (digests must start with `sha256:`).
