Skip to content

Instantly share code, notes, and snippets.

@leto
Last active August 29, 2015 14:15
Show Gist options
  • Save leto/97e7c15cc4ff3b700d5a to your computer and use it in GitHub Desktop.
Save leto/97e7c15cc4ff3b700d5a to your computer and use it in GitHub Desktop.
Example vagrant-aws config
config.vm.define "dev" do |dev|
config.vm.box = "dummy"
dev.vm.provider :aws do |aws, override|
override.vm.provision :shell, :path => "scripts/aws_provision.sh"
override.ssh.private_key_path = 'foo.pem'
override.vm.hostname = "foo.com"
override.ssh.username = "ubuntu"
aws.access_key_id = "REALLY SECRET DONT TELL..."
aws.secret_access_key = "asdf",
aws.keypair_name = "foo dev"
aws.ami = "ami-049d8641" # ubuntu 14.04 64bit
aws.region = "us-west-2"
aws.instance_type = "t2.micro"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment