View a markdown version of this page

Configuration files - AWS Elastic Beanstalk

Configuration files

You can add configuration files to the .ebextensions directory of your application's source code to configure various aspects of your Elastic Beanstalk environment. Among other things, configuration files let you customize software and other files on your environment's instances and run initialization commands on the instances. For more information, see Customizing software on Linux servers.

You can also set configuration options using configuration files. Many of the options control platform behavior, and some of these options are platform specific.

For platforms based on Amazon Linux 2 and Amazon Linux 2023, we recommend using Buildfile, Procfile, and platform hooks to configure and run custom code on your environment instances during instance provisioning. These mechanisms are described in the previous sections on this page. You can still use commands and container commands in .ebextensions configuration files, but they aren't as easy to work with. For example, writing command scripts inside a YAML file can be challenging from a syntax standpoint. You still need to use .ebextensions configuration files for any script that needs a reference to a AWS CloudFormation resource.

Warning Javascript is disabled or is unavailable in your browser.

To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.

Did this page help you? - Yes

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Did this page help you? - No

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.

AltStyle によって変換されたページ (->オリジナル) /