require '../aws.rb' # -*- mode: ruby -*- # vi: set ft=ruby : # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! VAGRANTFILE_API_VERSION = "2" name = 'windows2012' # pete-vagrant security group = # tcp 22 in 0.0.0.0/0 # tcp 5985 in 0.0.0.0/0 # tcp 3389 in 0.0.0.0/0 # tcp 445 in 0.0.0.0/0 Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "dummy" config.vm.guest = :windows config.windows.set_work_network = true config.vm.provider :aws do |aws, override| aws.access_key_id = @access_key_id aws.secret_access_key = @secret_access_key aws.keypair_name = "pete-vagrant" aws.instance_type = 'm3.medium' aws.region = @region aws.security_groups = 'pete-vagrant' aws.tags = { 'Name' => "pete-vagrant experiment #{name}" } aws.user_data = File.read("user_data.txt") aws.ami = "ami-5f938e36" aws.region_config 'eu-west-1', ami: 'ami-a1867dd6' # aws.block_device_mapping = [ # { # 'DeviceName' => "/dev/sdl", # 'VirtualName' => "root", # 'Ebs.VolumeSize' => 32, # 'Ebs.DeleteOnTermination' => true, # 'Ebs.VolumeType' => 'standard' # } # ] end end