@aws-cdk_aws-apprunner-alpha.CodeConfigurationValues

interface CodeConfigurationValues 🔹

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

Describes the basic configuration needed for building and running an AWS App Runner service.

This type doesn't support the full set of possible configuration options. Fur full configuration capabilities, use a apprunner.yaml file in the source code repository.

Example

new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromGitHub({
    repositoryUrl: 'https://github.com/aws-containers/hello-app-runner',
    branch: 'main',
    configurationSource: apprunner.ConfigurationSourceType.API,
    codeConfigurationValues: {
      runtime: apprunner.Runtime.PYTHON_3,
      port: '8000',
      startCommand: 'python app.py',
      buildCommand: 'yum install -y pycairo && pip install -r requirements.txt',
    },
    connection: apprunner.GitHubConnection.fromConnectionArn('CONNECTION_ARN'),
  }),
});

Properties

NameTypeDescription
runtime🔹RuntimeA runtime environment type for building and running an App Runner service.
buildCommand?🔹stringThe command App Runner runs to build your application.
environment?⚠️{ [string]: string }The environment variables that are available to your running App Runner service.
environmentSecrets?🔹{ [string]: Secret }The environment secrets that are available to your running App Runner service.
environmentVariables?🔹{ [string]: string }The environment variables that are available to your running App Runner service.
port?🔹stringThe port that your application listens to in the container.
startCommand?🔹stringThe command App Runner runs to start your application.

runtime🔹

Type: Runtime

A runtime environment type for building and running an App Runner service.

It represents a programming language runtime.


buildCommand?🔹

Type: string (optional, default: no build command.)

The command App Runner runs to build your application.


environment?⚠️

⚠️ Deprecated: use environmentVariables.

Type: { [string]: string } (optional, default: no environment variables.)

The environment variables that are available to your running App Runner service.


environmentSecrets?🔹

Type: { [string]: Secret } (optional, default: no environment secrets.)

The environment secrets that are available to your running App Runner service.


environmentVariables?🔹

Type: { [string]: string } (optional, default: no environment variables.)

The environment variables that are available to your running App Runner service.


port?🔹

Type: string (optional, default: 8080)

The port that your application listens to in the container.


startCommand?🔹

Type: string (optional, default: no start command.)

The command App Runner runs to start your application.