Skip to content

hasegawa-tomoki/ec2-drupal-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Drupal benchmark on EC2 with Vagrant & Chef

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages