Code Monkey home page Code Monkey logo

terraform-aws-vpc-with-private-subnets-and-nat's Introduction

About

Terraform module to bootstrap AWS VPC.

Features:

  • Private and public subnets
  • Internet gateway
  • NAT gateway (default: true)
  • NAT instance (default: false. Read more.)
  • MultiAZ mode for high availability (default: false)
  • RDS subnets (default: false)

Networks:

  • 10.0.0.0/28 - nat #1
  • 10.0.0.16/28 - nat #2
  • 10.0.0.32/27 - RDS
  • 10.0.0.64/27 - RDS
  • 10.0.1.0/24 - app #1
  • 10.0.2.0/24 - app #2

Usage

Minimal setup: VPC, NAT gw, w/o rds subnets, w/o multiAZ support

module "project_vpc" {
  source            = "github.com/jetbrains-infra/terraform-aws-vpc-with-private-subnets-and-nat"
  project           = "myproject" // required
}

All options with default values:

module "project_vpc" {
  source            = "github.com/jetbrains-infra/terraform-aws-vpc-with-private-subnets-and-nat"
  project           = "myproject" // required
  multi_az          = false
  rds               = false
  nat_mode          = "gateway" // or "instance"
  nat_instance_type = "t2.small"
}

Outputs

  • vpc_id
  • subnet_public_1
  • subnet_public_2 (empty if MultiAZ mode disabled)
  • subnet_private_1
  • subnet_private_2 (empty if MultiAZ mode disabled)
  • subnet_rds_1 (empty if RDS support disabled)
  • subnet_rds_2 (empty if RDS support disabled)
  • db_subnet_group (empty if RDS support disabled)
  • nat_gw_ip_1
  • nat_gw_ip_2 (empty if MultiAZ mode disabled)
  • nat_instance_ip_1
  • nat_instance_ip_2 (empty if MultiAZ mode disabled)
  • default_security_group

terraform-aws-vpc-with-private-subnets-and-nat's People

Contributors

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