Skip to content

Instantly share code, notes, and snippets.

@benmay
Created March 1, 2014 07:33
Show Gist options
  • Save benmay/4bd31d6d8437197c2848 to your computer and use it in GitHub Desktop.
Save benmay/4bd31d6d8437197c2848 to your computer and use it in GitHub Desktop.

AWS & Vagrant / Chassis

Take a look here for some notes:

http://www.devopsdiary.com/blog/2013/05/07/automated-deployment-of-aws-ec2-instances-with-vagrant-and-puppet/

Requirements

Install the vagrant-aws plugin here.

vagrant plugin install vagrant-aws

Create the dummy box

Modify the Vagrant File to add/modify the following:

https://gist.github.com/benmay/5000138a1b83b8b845b5

Add the following to config.yaml

# AWS Setup
aws:
    access_key_id: xxx
    secret_access_key: xxx
    keypair_name: xxx
    ami: ami-xxx
    region: ap-southeast-2
    username: ubuntu
    key: ~/.ssh/xxx

access_key_id & secret_access_key are the access keys from a new user in AWS/IAM that has the capabilities to manage/add EC2s.

keypair_name is the string/name of your Keypair name in AWS key to authenticate to the new EC2.

ami You ned to specify the ID of an AWS / Vagrant AMI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment