Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

A tiny Ansible quick-start for AWS and Dynamic Inventory

License

Notifications You must be signed in to change notification settings

chrisanthropic/ansible-aws-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHAT

A barebones setup for an Ansible project to manage AWS instances using Ansible's "Dynamic Inventory" script, and is only meant to get you started with Ansible and AWS.

HOW

  • Git clone this repo.
  • Export your AWS keys (or add the commands to your .profile or .bashrc)
    • export AWS_SECRET_ACCESS_KEY='###'
    • export AWS_ACCESS_KEY_ID='###'
  • Run it
    • ansible-playbook -i inventory/ec2.py playbook.yml

CAUTION

Running this script will create the following resources on your AWS account and YOU COULD BE CHARGED.

RESOURCES:

  • 1 local ssh key; ~/.ssh/id_rsa (if it doesn't exist)

  • 1 VPC

  • 1 VPC Internet Gateway

  • 2 subnets

  • 2 t2.micro EC2 instances

  • 2 EC2 Security Groups

About

A tiny Ansible quick-start for AWS and Dynamic Inventory

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages