Giter VIP home page Giter VIP logo

terraform-modules-resources's Introduction

TERRAFORM RESOURCE MODULES

Each environment contains a makefile which can be used to initialize,plan,apply or destroy all modules within an environment.The file system structure project/environment/availability-zone/ is used to facilitate this. State is maintained locally for demo purposes.

Subnets Example

subnets = {
     
      nat = {
        cidr_block = "10.111.16.0/24"
        type       = "public"
      }

      web = {
        cidr_block = "10.111.32.0/24"
        type       = "public"
      }
          
      app = {
        cidr_block = "10.111.48.0/24"
        type       = "private"
      }
      
      data = {
        cidr_block = "10.111.64.0/24"
        type       = "private"
      }
  }

Security Group Example

 

  ports = {
        
        ssh = {
          port_numbers = "22"
          cidr_range   = "0.0.0.0/0"
        }

        web80 = {
          port_numbers = "80"
          cidr_range   = "0.0.0.0/0"
        }

        webrange {
          port_numbers = "8000-9000"
          cidr_range   = "0.0.0.0/0"
        }
        
  }

Network Setup

The network related directives provision a vpc and all related subnets.

Initialize network: make network-init

Plan network build: make network-plan

Build network: make network-build

Destroy network: make network-destroy

Modules

These command execute against all modules within project/environment/availability-zone/ /... with the exception of the modules in the the network directory.

Initialize modules: make init

Plan modules build: make plan

Build modules: make build

Destroy modules: make destroy

check

terraform-modules-resources's People

Watchers

K. Opuiyo 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.