-
-
Save benmay/5000138a1b83b8b845b5 to your computer and use it in GitHub Desktop.
Changes to Vagrant file to support AWS
This file contains 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
diff --git a/Vagrantfile b/Vagrantfile | |
index 9237861..cbcaaad 100644 | |
--- a/Vagrantfile | |
+++ b/Vagrantfile | |
@@ -36,10 +36,18 @@ Vagrant.configure("2") do |config| | |
vagrant_version = Vagrant::VERSION.sub(/^v/, '') | |
# We <3 Ubuntu LTS | |
- config.vm.box = "precise32" | |
+ config.vm.box = "dummy" | |
- # Get it. Got it? Good. | |
- config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
+ config.vm.provider :aws do |aws, override| | |
+ aws.access_key_id = CONF['aws']['access_key_id'] | |
+ aws.secret_access_key = CONF['aws']['secret_access_key'] | |
+ aws.keypair_name = CONF['aws']['keypair_name'] | |
+ aws.ami = CONF['aws']['ami'] | |
+# aws.security_groups = CONF['aws']['security_groups'] | |
+ aws.region = CONF['aws']['region'] | |
+ override.ssh.username = CONF['aws']['username'] | |
+ override.ssh.private_key_path = CONF['aws']['key'] | |
+ end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment