Drupal setup scripts for benchmark on Amazon EC2 using Vagrant & Chef.
- Install Virtualbox.
- Install Vagrant.
- Install Vagrant plugins vagrant-aws, vagrant-omnibus
- 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
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`.
$ vagrant up t2.micro --provider=aws
Chef provision runs automatically. After this, you can use drupal.
$ vagrant halt t2.micro
$ vagrant destroy t2.micro