Created
June 19, 2014 05:34
-
-
Save miya0001/dc879ca3bbfcdac1d815 to your computer and use it in GitHub Desktop.
Vagrant+AWSでCKANを起動
This file contains 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
# encoding: utf-8 | |
# vim: ft=ruby expandtab shiftwidth=2 tabstop=2 | |
# 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.vm.box_url = "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box" | |
config.vm.synced_folder ".", "/vagrant", type: "rsync" | |
config.ssh.pty = true | |
## AWS | |
config.vm.provider :aws do |aws, override| | |
aws.access_key_id = ENV['AWS_ACCESS_KEY'] | |
aws.secret_access_key = ENV['AWS_SECRET_ACCESS_KEY'] | |
aws.keypair_name = ENV['AWS_EC2_KEYPAIR'] | |
aws.region = "ap-northeast-1" | |
aws.ami = "ami-d3d9a7d2" | |
aws.security_groups = 'default' | |
aws.instance_type = "c3.large" | |
override.ssh.username = "ubuntu" | |
override.ssh.private_key_path = ENV['AWS_EC2_KEYPAIR_PATH'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment