GithubHelp home page GithubHelp logo

autoscaling's Introduction

AutoScaling

Note: To remove the infrastructure that you have created, just re-run the script and it will prompt you for destroying the infra that you created. Infra that already exists(not created by the script) cannot be destroyed by the script.

  1. Clone the VPC branch of the AutoScaling repo in micky.

git clone -b vpc https://mgtsys:[email protected]/mgtsys/AutoScaling.git ~/AutoScaling/vpc

  1. Now execute the vpc.sh script to create the VPC.

cd /home/mgt/AutoScaling/vpc && bash vpc.sh

  1. You will be asked to enter the following details.

    • Enter your AWS ACCESS KEY:
    • Enter your AWS SECRET KEY:
    • Enter your AWS Region:
    • Enter your Project Name:
  2. The script will create the Following resources.

    • VPC
    • Subnets [Public, Private]
    • Internet Gateway
    • NAT Gateway
    • Route Table [Public, Private]
  3. Wait for the script to complete.

  4. Now, launch the instance from MGT Backend in the newly created VPC and proceed with setting up Admin and WebMaster servers.

IMPORTANT: Make sure your instances are named in the following format Admin = "$projectname-admin" WebMaster = "$projectname-web-master"

It is important for the script to detect the names in mentioned format to fetch the properties.

  1. Once the servers are up and running, you can proceed with the cloning the ASG branch of the AutoScaling repo in micky.

git clone -b asg https://mgtsys:[email protected]/mgtsys/AutoScaling.git ~/AutoScaling/asg

  1. Now execute the asg.sh script to create the ASG.

cd /home/mgt/AutoScaling/asg && bash asg.sh

  1. You will be asked to enter the same details as you did in step 3.

  2. The script will create the following resources.

    • AMI
    • Load Balancer
    • Target Groups
    • Security Group
    • Health Check
    • Launch Configuration
    • Auto Scaling Group
    • CloudWatch Alarm
  3. Wait for the script to complete.

autoscaling's People

Contributors

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