Skip to content

Instantly share code, notes, and snippets.

@joeartsea
Created July 18, 2013 10:37
Show Gist options
  • Save joeartsea/6028364 to your computer and use it in GitHub Desktop.
Save joeartsea/6028364 to your computer and use it in GitHub Desktop.
Vagrant1.2 for EC2, Setting of Vagrantfile
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']
aws.keypair_name = "artsnet"
aws.instance_type = "t1.micro"
aws.region = "ap-northeast-1"
aws.ami = "ami-45a93e44"
aws.security_groups = ['artsnet']
aws.tags = {
'Name' => 'vagrant-test',
'Description' => 'vagrant test'
}
override.ssh.username = "ec2-user"
override.ssh.private_key_path = "~/.ssh/artsnet.pem"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment