Friday, 15 March 2013

vagrant on aws


  1. vagrant plugin install vagrant-aws
  2. vagrant box add aws001 https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box
  3. vagrant init
  4. Adapt below and put in the "Vagrantfile" file
  5. vagrant up --provider=aws
  6. vagrant ssh
  7. 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.

Interview questions: 2020-12

Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer  Networking Layer 1 vs Layer 4 haproxy u...