Created
April 13, 2014 14:07
-
-
Save feniix/10585633 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
ENV['VAGRANT_DEFAULT_PROVIDER'] = 'aws' | |
Vagrant.require_version ">= 1.5.1" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "web" do |web| | |
web.vm.box = "dummy" | |
web.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box" | |
web.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 = "otaeguis" | |
aws.ami = "ami-c73123ae" | |
aws.region = "us-east-1" | |
aws.instance_type = "m1.large" | |
override.ssh.username = "ubuntu" | |
override.ssh.private_key_path = "~/.ssh/id_rsa" | |
aws.security_groups = "jenkins" | |
aws.tags = { | |
"Name" => "AWSTESTMACHINE", | |
"Test" => "True", | |
} | |
aws.block_device_mapping = [ | |
{ | |
"DeviceName" => "/dev/sdt", | |
"VirtualName" => "testvolume", | |
"Ebs.VolumeSize" => 100, | |
"Ebs.DeleteOnTermination" => true, | |
} | |
] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
vagrant-aws attaching extra EBS volumes