Skip to content

Instantly share code, notes, and snippets.

@amferraz
Created September 23, 2013 14:50
Show Gist options
  • Select an option

  • Save amferraz/6671583 to your computer and use it in GitHub Desktop.

Select an option

Save amferraz/6671583 to your computer and use it in GitHub Desktop.
A sample Vagranfile for vagrant-aws. Fill in the "MY_*" values
Vagrant.configure("2") do |config|
config.vm.box = "MY_BOX_NAME"
config.vm.provider :aws do |aws, override|
aws.access_key_id = "MY_ACCESS_KEY_ID"
aws.secret_access_key = "MY_SECRET_ACCESS_KEY"
aws.keypair_name = "MY_KEYPAIR_NAME"
aws.security_groups = "MY_VAGRANT_SECURITY_GROUP"
# take a look here for AMIs/regions info:
# http://cloud-images.ubuntu.com/locator/ec2/
aws.ami = "MY_AMI_NAME"
aws.region = "MY_AMI_REGION"
override.ssh.username = "MY_SSH_USERNAME"
override.ssh.private_key_path = "/path/to/MY_KEYPAIR_NAME.pem"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment