Created
January 3, 2017 08:50
-
-
Save ddepaoli3/d481165d11d2cad2edb915386eea54a2 to your computer and use it in GitHub Desktop.
Vagrantfile for AWS provisioner
This file contains hidden or 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
# https://github.com/mitchellh/vagrant-aws | |
# vagrant plugin install vagrant-aws | |
# vagrant box add dummy https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box | |
# vagrant up --provider=aws | |
Vagrant.configure("2") do |config| | |
config.vm.box = "dummy" | |
config.vm.provider :aws do |aws, override| | |
aws.keypair_name = "<keypair name>" | |
aws.access_key_id = "<access key>" | |
aws.secret_access_key = "<secret key>" | |
aws.region = "eu-west-1" | |
aws.instance_type = "t2.micro" | |
aws.ami = "ami-6f587e1c" #Ubuntu 16.04 for Ireland eu-west-1 region | |
#Install python2.7 for ansible | |
aws.user_data = "#!/bin/bash\napt-get install --yes python2.7\nln -s /usr/bin/python2.7 /usr/bin/python" | |
override.ssh.username = "ubuntu" | |
override.ssh.private_key_path = "~/keys/key.pem" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment