Skip to content

Latest commit

 

History

History
65 lines (48 loc) · 1.78 KB

README.md

File metadata and controls

65 lines (48 loc) · 1.78 KB

ec2-drupal-benchmark

What is this?

Drupal setup scripts for benchmark on Amazon EC2 using Vagrant & Chef.

Tools installation & settings

  1. Install Virtualbox.
  2. Install Vagrant.
  3. Install Vagrant plugins vagrant-aws, vagrant-omnibus
  4. Add this to your .bash_profile file.
export AWS_ACCESS_KEY_ID="(Access key id)"
export AWS_SECRET_ACCESS_KEY="(Secret access key)"
export AWS_SUBNET_ID="(subnet id)"
export AWS_PRIVATE_KEY_PATH="/path/to/privatekey.pem"
export AWS_KEYPAIR_NAME="(keypair name)"

Refs: vagrant-aws configuration

Usage

VM list

You can use this instance types.

$ vagrant status
Current machine states:

t2.micro                  not created (virtualbox)
t2.small                  not created (virtualbox)
t2.medium                 not created (virtualbox)
m3.medium                 not created (virtualbox)
m3.large                  not created (virtualbox)
m3.xlarge                 not created (virtualbox)
m3.2xlarge                not created (virtualbox)
c3.large                  not created (virtualbox)
c3.xlarge                 not created (virtualbox)
c3.2xlarge                not created (virtualbox)
c3.4xlarge                not created (virtualbox)
c3.8xlarge                not created (virtualbox)

This environment represents multiple VMs. The VMs are all listed
above with their current state. For more information about a specific
VM, run `vagrant status NAME`.

Start instance

$ vagrant up t2.micro --provider=aws

Chef provision runs automatically. After this, you can use drupal.

Stop & destroy instance

$ vagrant halt t2.micro
$ vagrant destroy t2.micro