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

The source of the App Runner configuration.

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

## Example

```ts
new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromGitHub({
    repositoryUrl: 'https://github.com/aws-containers/hello-app-runner',
    branch: 'main',
    configurationSource: apprunner.ConfigurationSourceType.REPOSITORY,
    connection: apprunner.GitHubConnection.fromConnectionArn('CONNECTION_ARN'),
  }),
});
```

## Members

| Member | Description |
| --- | --- |
| `REPOSITORY` | App Runner reads configuration values from `the apprunner.yaml` file in the source code repository and ignores `configurationValues`. |
| `API` | App Runner uses configuration values provided in `configurationValues` and ignores the `apprunner.yaml` file in the source code repository. |

## Referenced by

- [`CodeConfiguration`](/v2/docs/@aws-cdk_aws-apprunner-alpha.CodeConfiguration).configurationSource
- [`GithubRepositoryProps`](/v2/docs/@aws-cdk_aws-apprunner-alpha.GithubRepositoryProps).configurationSource
