View a markdown version of this page

Application example with extensions - AWS Elastic Beanstalk

Application example with extensions

The following example demonstrates an application source bundle with several extensibility features that Elastic Beanstalk Amazon Linux 2 and Amazon Linux 2023 platforms support: a Procfile, .ebextensions configuration files, custom hooks, and proxy configuration files.

~/my-app/
|-- web.jar
|-- Procfile
|-- readme.md
|-- .ebextensions/
| |-- options.config # Option settings
| `-- cloudwatch.config # Other .ebextensions sections, for example files and container commands
`-- .platform/
 |-- nginx/ # Proxy configuration
 | |-- nginx.conf
 | `-- conf.d/
 | |-- custom.conf
 | `-- elasticbeanstalk/
 | `-- server.conf
 |-- hooks/ # Application deployment hooks
 | |-- prebuild/
 | | |-- 01_set_secrets.sh
 | | `-- 12_update_permissions.sh
 | |-- predeploy/
 | | `-- 01_some_service_stop.sh
 | `-- postdeploy/
 | |-- 01_set_tmp_file_permissions.sh
 | |-- 50_run_something_after_app_deployment.sh
 | `-- 99_some_service_start.sh
 `-- confighooks/ # Configuration deployment hooks
 |-- prebuild/
 | `-- 01_set_secrets.sh
 |-- predeploy/
 | `-- 01_some_service_stop.sh
 `-- postdeploy/
 |-- 01_run_something_after_config_deployment.sh
 `-- 99_some_service_start.sh
Note

Some of these extensions aren't supported on Amazon Linux AMI platform versions (preceding Amazon Linux 2).

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 によって変換されたページ (->オリジナル) /