Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Creating an Elastic Beanstalk Application

Install the Elastic Beanstalk Command Line Interface (EB CLI)

Go to Install the Elastic Beanstalk Command Line Interface (EB CLI) for instructions.

Create the application

$ mkdir my-app
$ cd my-app
$ eb init my-app -p PHP

Here were telling the eb cli to create an application called my-app, and then set platform -p to be PHP. If application name is omitted it will default to the current folder name. Next, you will be prompted Select a default region. Just choose your account's region. For Example: where region-here is the region name.

Create an environment

Lets create the environment. Assuming you have installed your app in the folder.

$ eb create env-name --database --database.engine mysql --database.instance db.t2.micro

The --database flag tells eb to also create a database for our environment. We specify the type of database we are going to use --database.engine which is mysql. And finally the database tier plan that we are going to use, db.t2.micro in this case.


Deploying onto AWS Elastic Beanstalk - Deploy Web Applications on AWS

Deploying WordPress to Amazon Web Services AWS EC2 and RDS via ElasticBeanstalk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment