Coder Social home page Coder Social logo

shahkamran / ansible-vpc-ec2-rds Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 52 KB

Creating and managing AWS VPC with an EC2 Bastian server and RDS. A complete example using Ansible group varialbes, roles and clean up for everything created in this project.

ansible-vpc-ec2-rds's Introduction

Ansible to create VPC, Networks, EC2 Instance and RDS

Setting up AWS infrastructure with a Bastian server and RDS within its dedicated VPC and associated elements.

Objectives

In this repository you will be carrying out following tasks in automated way.

  • Create a new VPC
  • Create VPC Subnets
  • Create VPC Routes
  • Create Security Groups
  • Create EC2 Instance
  • Create RDS Instance
  • Clean-up to terminate all above

Prerequisites

You must have following before running this playbook.

  • AWS Account
  • AWS IAM Security Key and credentials
  • AWS EC2 Key Pair
  • A Linux computer or instance with Ansible, Git, Boto and required Python tools installed.
  • pip install ansible botocore boto3 boto
  • This repository

How to

  • Add AWS Security Key credentials to ~/.boto file.
  • Create a new EC2 Key Pair and secure the private key.
  • Download repository using git clone repositoryURL command.
  • Amend variables listed in group_vars/all/vars and add your settings or preferences.
  • If you want RDS creation modify site.yml and uncomment RDS role. Please note RDS creation takes up to 30 minutes and incurs additional charges.
  • To provision infrastructure run ansible-playbook site.yml.
  • To clean-up and terminiate your infrastructure you can run ansible-playbook destroy.yml.

Enjoy

Simple as that.

ansible-vpc-ec2-rds's People

Contributors

shahkamran 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.