Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Setting App Runner service options using a configuration file

Focus mode
Setting App Runner service options using a configuration file - AWS App Runner
Note

Configuration files are applicable only to services that are based on source code. You can't use configuration files with image-based services.

When you create an AWS App Runner service using a source code repository, AWS App Runner requires information about building and starting your service. You can provide this information each time you create a service using the App Runner console or API. Alternatively, you can set service options by using a configuration file. The options that you specify in a file become part of your source repository, and any changes to these options are tracked similarly to how changes to the source code are tracked. You can use the App Runner configuration file to specify more options than the API supports. You don't need to provide a configuration file if you only need the basic options that the API supports.

The App Runner configuration file is a YAML file that's named apprunner.yaml in the source directory of your application’s repository. It provides build and runtime options for your service. Values in this file instruct App Runner how to build and start your service, and provide runtime context such as network settings and environment variables.

The App Runner configuration file doesn’t include operational settings, such as CPU and memory.

For examples of App Runner configuration files, see App Runner configuration file examples. For a complete reference guide, see App Runner configuration file reference.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.