Code Monkey home page Code Monkey logo

ansible-aws-roles's Introduction

Ansible Roles for AWS Infrastructure Creation

There's a series of blog posts that I wrote to go along with these roles. Check it out!

The purpose of these Ansible roles are to create the complete infrastructure over AWS using Ansible, which include:

  • VPC with public and private subnets in different AZ
  • EC2 Key Pair
  • Security Groups for EC2,RDS and ELB with tags
  • EC2 instance inside the desired AZs
  • ELB with SSL support
  • RDS instance

I have also written so really small plugins to get the desired information.

Requirement to use these roles:

  • Ansible v2.0
  • boto
  • AWS admin access

Specifically, these are the versions of mentioned software that I am using:

arbab@ansible2:~$ ansible --version
ansible 2.0.0
  config file =
  configured module search path = Default w/o overrides
arbab@ansible2:~$
arbab@ansible2:~$ python -c 'import boto;print(boto.Version)'
2.38.0
arbab@ansible2:~$

Ansible uses python-boto library to call AWS API, and boto needs AWS credentials in order to perform all the functions. There are many ways to configure your AWS credentials. The easiest way is to crate a .boto file under your user home directory:

Then add the following:

[Credentials]
aws_access_key_id = <your_access_key_here>
aws_secret_access_key = <your_secret_key_here>

ansible-aws-roles's People

Contributors

arbabnazar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.