Giter Club home page Giter Club logo

terraformproject's Introduction

Become an architect Part.1 .

In this project Terraform is gonna create ssh key, security group , 2 instances named as loadbalancer and database, launch configuration as plain Ubuntu Server 18.04 LTS, auto scaling group and auto scaling policy in which if CPU gets over 60% its gonna create new instance. Ansible is gonna configure database, webservers, loadbalancer. Also in this python script its gonna run constantly ec2.py script which creates dynamic host file and if the output is different from the last one its gonna start another ansible playbook which will configure new webserver create new user in database and add new server to a loadbalancer.

To run the script you need to create aws user with secret key. Also you obviously need to have ansible, terraform and both python2, python3. You need to install such python modules: boto and ansible with use of pip for both python2 and python3. And you need to have user that can run terraform and ansible.

Command to run the script: python setup.py << AWS_ACCESS_KEY_ID >> << AWS_SECRET_ACCESS_KEY >> << AWS_DEFAULT_REGION >> &

Script is going to print out terraform and first ansible configuration. After that if everytihg runs smoothly you can start doing anything you want because it's running in the background.

terraformproject's People

Contributors

blevkovych avatar

Stargazers

Omelian Levkovych 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.