Skip to content

Instantly share code, notes, and snippets.

@feniix
Created April 13, 2014 14:07
Show Gist options
  • Save feniix/10585633 to your computer and use it in GitHub Desktop.
Save feniix/10585633 to your computer and use it in GitHub Desktop.
# -*- 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
@feniix
Copy link
Author

feniix commented Apr 13, 2014

vagrant-aws attaching extra EBS volumes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment