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

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

Extends: EcrPublicProps
Used as props by: EcrPublicSource

- 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#L332)

## Example

```ts
import * as iam from 'aws-cdk-lib/aws-iam';

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

service.addToRolePolicy(new iam.PolicyStatement({
  effect: iam.Effect.ALLOW,
  actions: ['s3:GetObject'],
  resources: ['*'],
}))
```

## Properties

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

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

- `imageIdentifier`: string (required) — The ECR Public image URI.
