rvm+rubyインストール済みのEC2インスタンスを構築します。
$ vagrant plugin install vagrant-aws
$ vagrant plugin install vagrant-omnibus
$ vagrant plugin install vagrant-berkshelf
$ vagrant plugin list
vagrant-aws (0.2.2)
vagrant-berkshelf (1.3.2)
vagrant-omnibus (1.1.0)
$ vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
https://github.com/mitchellh/vagrant-aws/blob/master/README.md#quick-start
$ git clone https://github.com/arukoh/stack-ruby-base.git
$ cd stack-ruby-base
$ bundle install
- aws configuration
- https://github.com/mitchellh/vagrant-aws/blob/master/README.md#configuration
- ruby version to install
- https://github.com/fnichol/chef-rvm#-attributes
$ export SSH_PRIVATE_KEY_PATH=~/.ssh/id_rsa
$ export AWS_ACCESS_KEY_ID=my_key
$ export AWS_SECRET_ACCESS_KEY=my_secreat
$ export AWS_KEYPAIR_NAME=my_keypair
$ vagrant up --provider=aws