Code Monkey home page Code Monkey logo

terraform-modules's Introduction

Aviatrix - Terraform Modules

Description

These Terraform Modules allows you to create the necessary IAM roles and deployment of an Aviatrix Controller. If you execute this terraform modules, it will create the following:

  • One Aviatrix Controller EC2 Instance (named AviatrixController).
  • One Aviatrix Security Group (named AviatrixSecurityGroup).
  • One Aviatrix Role for EC2 (named aviatrix-role-ec2) with corresponding role policy (named aviatrix-assume-role-policy). Click here for this policy details
  • One Aviatrix Role for Apps (named aviatrix-role-app) with corresponding role policy (named aviatrix-app-policy) Click here for this policy details

Pre-requisites:

  • Hashicorp Terraform installed
  • An existing VPC.
  • A public subnet on that VPC.
  • An internet gateway attached to the VPC.
  • KeyPair.
  • In order to use the Aviatrix Controller first you need to accept the terms and subscribe to it in the AWS Marketplace. Click here

Usage:

To create roles necessary for aviatrix access on your AWS account:

module "iam_roles" {
  source = "github.com/AviatrixSystems/terraform-modules.git/iam_roles"
  region  = "<<insert aws region here, ie. us-east-1>>"
}

To create an Aviatrix Controller:

module "aviatrixcontroller" {
  source = "github.com/AviatrixSystems/terraform-modules.git/controller"
  region  = "<<insert aws region here, ie.: us-east-1>>"
  vpc = "<<insert VPC here> ie. vpc-xxxxxx>"
  subnet = "<<insert public subnet id ie.: subnet-9x3237xx>>"
  keypair = "<<insert keypair name ie.: keypairname>>"
  ec2role = "<<insert role for aviatrix-role-ec2>> OR if you are using the iam_role simply use this: ${module.iam_roles.aviatrix-role-ec2}"
}

Outputs

  • aws-account
  • aviatrix-role-ec2
  • aviatrix-role-app
  • controller-private-ip
  • controller-public-ip

terraform-modules's People

Contributors

clara-aaronchu avatar jorgebonilla avatar yogogit avatar

Watchers

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