Giter VIP home page Giter VIP logo

terraform-aws-vpc's Introduction

terraform-aws-vpc

Terraform module to create all mandatory VPC components.

This module supports either single-tier (only pubilc subnet) or multi-tier (public-app-data subnets) VPC creation. This module supports only up to 4 AZs.

Usage

module "abc_dev" {
  source = "github.com/traveloka/terraform-aws-vpc.git?ref=0.0.1"

  product_domain = "abc"
  environment    = "dev"

  vpc_name       = "abc-dev"
  vpc_cidr_block = "172.16.0.0/16"
}

Single-Tier VPC

In some cases, you will need a VPC which has only public subnets.

module "abc_dev" {
  source = "github.com/traveloka/terraform-aws-vpc.git?ref=0.0.1"

  # you only need to add this line
  vpc_multi_tier = false 

  # ... omitted
}

In some situations (it is not always happening), you will get some errors from Terraform when you set vpc_multi_tier = false. It happens because several resources were not created but stated as the outputs. Currrently Terraform does not allow count inside output block, so now it is inevitable. But don't worry, the errors have nothing to do with the stacks/resources/infrastructures that you created. Just re-execute terraform apply and you will be fine.

Terraform Version

This module was created using Terraform 0.11.4. So to be more safe, Terraform version 0.11.4 or newer is required to use this module.

Examples

Authors

License

Apache 2 Licensed. See LICENSE for full details.

terraform-aws-vpc's People

Contributors

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