View a markdown version of this page

Custom build and configuration with a Buildfile on Elastic Beanstalk - AWS Elastic Beanstalk

Custom build and configuration with a Buildfile on Elastic Beanstalk

To specify a custom build and configuration command for your Go application, include a file called Buildfile at the root of your source bundle. The file name is case sensitive. Use the following format for the Buildfile:

<process_name>: <command>

The command in your Buildfile must match the following regular expression: ^[A-Za-z0-9_]+:\s*.+$.

Elastic Beanstalk doesn't monitor the application that is run with a Buildfile. Use a Buildfile for commands that run for short periods and terminate after completing their tasks. For long-running application processes that should not exit, use the Procfile instead.

In the following example of a Buildfile, build.sh is a shell script that is located at the root of the source bundle:

make: ./build.sh

All paths in the Buildfile are relative to the root of the source bundle. If you know in advance where the files reside on the instance, you can include absolute paths in the Buildfile.

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