Experimental
@aws-cdk/aws-apprunner-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
CodeConfigurationValues Struct
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
ts
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
buildCommandstringbuild_commandstrbuildCommandStringBuildCommandstringBuildCommand*string= no build command.#The command App Runner runs to build your application.
environment{ [key: string]: string }environmenttyping.Mapping[str, str]environmentMap<String, String>EnvironmentIDictionary<string, string>Environment*map[string]*string= no environment variables.deprecated#use environmentVariables.
environmentSecrets{ [key: string]: Secret }environment_secretstyping.Mapping[str, Secret]environmentSecretsMap<String, Secret>EnvironmentSecretsIDictionary<string, Secret>EnvironmentSecrets*map[string]Secret= no environment secrets.#The environment secrets that are available to your running App Runner service.
environmentVariables{ [key: string]: string }environment_variablestyping.Mapping[str, str]environmentVariablesMap<String, String>EnvironmentVariablesIDictionary<string, string>EnvironmentVariables*map[string]*string= no environment variables.#The environment variables that are available to your running App Runner service.
The port that your application listens to in the container.
A runtime environment type for building and running an App Runner service.
It represents a programming language runtime.
startCommandstringstart_commandstrstartCommandStringStartCommandstringStartCommand*string= no start command.#The command App Runner runs to start your application.