AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)
AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

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.