Skip to content

Instantly share code, notes, and snippets.

@furu
Last active June 8, 2016 19:26
Show Gist options
  • Save furu/823e9b4ab3bd4404981ed8ce1331540b to your computer and use it in GitHub Desktop.
Save furu/823e9b4ab3bd4404981ed8ce1331540b to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# https://github.com/mitchellh/vagrant-aws
# 1. Install Vagrant
# 2. vagrant plugin install vagrant-aws
# 3. vagrant box add dummy \
# https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
# 4. vagrant up --provider=aws
Vagrant.configure(2) do |config|
config.vm.box = "dummy"
config.vm.provider :aws do |aws, override|
aws.access_key_id = ENV['AWS_ACCESS_KEY_ID']
aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY']
# Amazon Linux AMI 2016.03.1 (HVM), SSD Volume Type
aws.ami = 'ami-29160d47'
aws.instance_type = 't2.nano'
aws.region = 'ap-northeast-1'
aws.security_groups = %w(playground-security-group)
aws.keypair_name = 'tfrkd-playground'
override.ssh.username = 'ec2-user'
override.ssh.private_key_path = '~/.ssh/tfrkd-playground.pem'
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment