GithubHelp home page GithubHelp logo

terraform-aws-vm-fleet's Introduction

Terraform code for AWS instance spin up

  • this repo holds the code to create a full infrastructure in AWS to deploy a configurable amount of VMs
  • a monitoring solution is implemented after the VMs are up. Each VM will ping in a round-robbin manner other VM

General overview

This repository is divided in terraform modules:

  1. Module: network -> creates the VPC and the subnet in which the VMs will be created (+ internet gw)
  2. Module: vmfleet -> creates a bastion vm with public IP and generates a ssh key for it stored in AWS key pairs. Same thing done for each vm from the fleet, but the fleet vms are private
    • security groups were created, one for the bastion VM and one for the fleet
    • each ssk key for the vm fleet is saved on the bastion host in a specific location
    • at the end, a nul_resource is used in order to simulate a roundrobbin fashion of pinging the VMs in the fleet
    • the local script.sh file contains the script for round-robbin ping fashion

Variables

Notable variables:

  • the VM type and VM ami are configurable from the .tfvars file (for both bastion and fleet vm)
  • the number of the VM fleet is configured in tfvars and has a validation rule on it -> this can take values between 2 and 100

terraform-aws-vm-fleet's People

Watchers

Teodora Mihuc 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.