Skip to content

Instantly share code, notes, and snippets.

@slashr
Created March 27, 2016 09:26
Show Gist options
  • Save slashr/6596cef470429394a577 to your computer and use it in GitHub Desktop.
Save slashr/6596cef470429394a577 to your computer and use it in GitHub Desktop.
Vagrant.configure(2) do |config|
config.vm.define :delta do |x|
x.vm.box = "hashicorp/precise64"
x.vm.hostname = "delta"
x.vm.provider :virtualbox do |v|
v.name = "delta"
end
# x.vm.box = "username"
x.vm.provider :aws do |aws, override|
aws.access_key_id = "*****"
aws.secret_access_key = "*****"
aws.keypair_name = "MyKey"
aws.region = "ap-southeast-1"
aws.tags = {
'Name' => 'VagrantTestInstance',
'Owner' => 'Me'
}
aws.ami = "ami-25c00c46"
override.vm.box = "dummy"
override.ssh.username = "ubuntu"
override.ssh.private_key_path = "~/path/to/key.pem"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment