- vagrant plugin install vagrant-aws
- vagrant box add aws001 https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
- vagrant init
- Adapt below and put in the "Vagrantfile" file
- vagrant up --provider=aws
- vagrant ssh
- vagrant destroy
Vagrant.configure("2") do |config|
config.vm.box = "aws001"
config.vm.provider :aws do |aws|
aws.access_key_id = "<your_aws_key_id>"
aws.secret_access_key = "<your_aws_secret>"
aws.keypair_name = "<your_keypair_name>"
aws.ssh_private_key_path = "/home/<you>/.ssh/<your_keypair_name>.pem"
aws.region = "eu-west-1"
aws.ami = "ami-01080b75"
aws.ssh_username = "ubuntu"
end
end
No comments:
Post a Comment
Note: only a member of this blog may post a comment.