Coder Social home page Coder Social logo

terraform-aws-network's Introduction

Overview

AWS VPC 및 Subnet, Route-table, Internet-Gateway, NAT-Gateway(EIP)을 생성하는 테라폼 모듈입니다. 하단의 내용은 terraform-docs에 의해 생성되었습니다.

Providers

Name Version
aws 5.23.1

Requirements

Name Version
terraform >= 1.6.0
aws >= 5.0.0

Inputs

Name Description Type Default Required
create_igw If true, internet-gateway will be created. bool false no
global_additional_tag Additional tags for all resources. map(string)
{
"TerraformModuleSource": "github.com/Yunsang-Jeong/terraform-aws-network"
}
no
igw_tags A map of tags to assign to the Internet-gateway. map(string) {} no
name_prefix The name-prefix of all resources. string "tf-poc" no
subnets The subnet informations
list(object(
{
identifier = string
availability_zone = string
cidr_block = string
create_nat = optional(bool, false)
enable_route_with_igw = optional(bool, false)
enable_route_with_nat = optional(bool, false)
additional_tag = optional(map(string), {})
}
))
[] no
vpc_cidr_block The CIDR block for the VPC. string "10.0.0.0/16" no
vpc_enable_dns_hostnames A boolean flag to enable/disable DNS hostnames in the VPC. bool true no
vpc_enable_dns_support A boolean flag to enable/disable DNS support in the VPC. bool true no
vpc_tags A map of tags to assign to the vpc. map(string) {} no

Outputs

Name Description
igw_gateway_id The id of the internet gateway
natgw_ids The dictioanry of the nat-gateway id
natgw_ips The dictioanry of the nat-gateway public-ips
route_table_ids The dictioanry of the route-table id
subnet_ids The dictioanry of the subnet id
vpc_id The id of the VPC

Example

module "network" {
  source = "github.com/Yunsang-Jeong/terraform-aws-network"

  vpc_cidr_block = "10.0.0.0/16"
  create_igw     = true
  subnets = [
    {
      identifier            = "public-a"
      availability_zone     = "ap-northeast-2a"
      cidr_block            = "10.0.10.0/24"
      enable_route_with_igw = true
      create_nat            = true
    },
    {
      identifier            = "public-c"
      availability_zone     = "ap-northeast-2c"
      cidr_block            = "10.0.11.0/24"
      enable_route_with_igw = true
      create_nat            = true
    },
    {
      identifier            = "private-a"
      availability_zone     = "ap-northeast-2a"
      cidr_block            = "10.0.20.0/24"
      enable_route_with_nat = true
    },
    {
      identifier            = "private-c"
      availability_zone     = "ap-northeast-2c"
      cidr_block            = "10.0.21.0/24"
      enable_route_with_nat = true
    },
    {
      identifier        = "isolated-a"
      availability_zone = "ap-northeast-2a"
      cidr_block        = "10.0.30.0/24"
    },
    {
      identifier        = "isolated-c"
      availability_zone = "ap-northeast-2c"
      cidr_block        = "10.0.31.0/24"
    },
  ]
}

terraform-aws-network's People

Contributors

yunsang-jeong avatar

Watchers

 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.