Go to Install the Elastic Beanstalk Command Line Interface (EB CLI) for instructions.
$ 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: region-here.console.aws.amazon.com
where region-here
is the region name.
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