AWS Elastic Beanstalk
Developer Guide
AWS services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon AWS.

Using the EB CLI with AWS CodeBuild

You can use the EB CLI to build your application from your source code using AWS CodeBuild. With AWS CodeBuild, you can compile your source code, run unit tests, and produce artifacts that are ready to deploy.


Some regions don't offer AWS CodeBuild. The integration between Elastic Beanstalk and AWS CodeBuild doesn't work in these regions.

For information about the AWS services offered in each region, see Region Table.

Creating an Application

You can use the Elastic Beanstalk CLI to create an application that uses AWS CodeBuild to compile your source code. If you run eb init in a folder with a buildspec.yml file, Elastic Beanstalk detects the file and parses it to detect any Elastic Beanstalk settings. Elastic Beanstalk extends the format of the buildspec.yml file to include the following additional settings, as described in eb init.

On this page: