Terraform module which creates Environment components like network, subnetwork, route etc.
These types of resources are supported:
By default this modules creates the Network with one public subnetwork and one private subnetwork with NAT gateway on Private subnetwork. Default Internet Gateway is associated with public Subnets.
module "vpc" {
  source = "./modules/env" 
  ENV                   = "${var.ENV}"              #Environment Type like qa, dev | default is qa
  VPC_NAME              = "${var.VPC_NAME}"         #Network Name  | default is "custom-vpc"
  REGION                = "${var.REGION}"           #GCP Region | default is us-east1
  PUB1_CIDR_BLOCK       = "${var.PUB1_CIDR_BLOCK}"  #CIDR Block Range | default is 10.53.17.0/24
  PRI1_CIDR_BLOCK       = "${var.PRI1_CIDR_BLOCK}"  #CIDR Block Range | default is 10.53.16.0/24
}| Name | Description | Type | Default | Required | 
|---|---|---|---|---|
| ENV | Infrastructure Environment Type | String | qa | yes | 
| VPC_NAME | Network Name | String | custom-vpc | yes | 
| REGION | GCP REGION code | String | us-east1 | yes | 
| PROJECT_NAME | GCP Project Name | String | " " | yes | 
| Name | Description | 
|---|---|
| vpc_uri | Created Network URI | 
Module is maintained by Karan Sharma.