Skip to content

Commit a430e98

Browse files
committed
Some changes to EC2 vagrant - still not working great
1 parent 4376c0e commit a430e98

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Vagrantfile

+14-12
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ Vagrant.configure("2") do |config|
3434
"echo '\"vagrant reload\" can be used in about 2 minutes to activate the new guest additions.'; "
3535
end
3636

37+
config.vm.provider :aws do |aws, override|
38+
override.vm.box = "dummy"
39+
aws.access_key_id = ENV["AWS_ACCESS_KEY"]
40+
aws.secret_access_key = ["AWS_SECRET_KEY"]
41+
aws.region = "us-west-2"
42+
aws.keypair_name = ENV["AWS_KEYPAIR_NAME"]
43+
# aws.security_groups = ["jiffylab"]
44+
aws.ami = "ami-ace67f9c"
45+
# aws.ami = "ami-9c47deac"
46+
# aws.instance_type = "m2.xlarge"
47+
# override.ssh.username = "ubuntu"
48+
# override.ssh.private_key_path = ENV["PRIVATE_KEY"]
49+
end
50+
3751
config.vm.provider :rackspace do |rs, override|
3852
override.vm.box = "dummy"
3953
override.ssh.private_key_path = ENV["PRIVATE_KEY"]
@@ -53,17 +67,5 @@ Vagrant.configure("2") do |config|
5367
digocean.size = "512MB"
5468
end
5569

56-
config.vm.provider :aws do |aws, override|
57-
aws.access_key_id = ENV["AWS_ACCESS_KEY"]
58-
aws.secret_access_key = ENV["AWS_SECRET_KEY"]
59-
aws.keypair_name = ENV["AWS_KEYPAIR_NAME"]
60-
61-
# this is an EBS backed 13.04 x64 image
62-
aws.ami = "ami-27f86c26"
63-
64-
override.ssh.username = "ubuntu"
65-
override.ssh.private_key_path = ENV["PRIVATE_KEY"]
66-
end
67-
6870
config.vm.provision :shell, :path => "linux-setup.sh"
6971
end

0 commit comments

Comments
 (0)