Created
July 17, 2014 17:04
-
-
Save phstudy/9a213975471dcb4751b2 to your computer and use it in GitHub Desktop.
a Vagrantfile to spin up a docker ready aws instance in tokyo
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "dummy" | |
config.ssh.pty = true | |
config.vm.provider :aws do |aws, override| | |
aws.access_key_id = "YOUR_AWS_ACCESS_KEY" | |
aws.secret_access_key = "YOUR_AWS_SECRET_ACCESS_KEY" | |
aws.keypair_name = "YOUR_KEYPAIR_NAME" | |
aws.region = "ap-northeast-1" | |
aws.ami = "ami-03642d02" | |
aws.instance_type = "t1.micro" | |
override.ssh.username = "ec2-user" | |
override.ssh.private_key_path = "PATH_TO_YOUR_PRIVATE_KEY" | |
aws.tags = { | |
'foo' => 'bar' | |
} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment