environment-setup
karan6190/environment-setup/gcp
IAC for provisioning Infrastructure component like network, subnetworks, route
Terraform-gcp-environment-setup !Terraform_CI Terraform module which creates Environment components like network, subnetwork, route etc. These types of resources are supported: Network Subnetwork Route Router_NAT Firewall Bastion Host Network 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. Sample code for using network module ``hcl 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
| Name | Type | Description | Default |
|---|---|---|---|
| PUB1_CIDR_BLOCK | map(string) | required | |
| PRI1_CIDR_BLOCK | map(string) | required | |
| PROJECT_NAME | string | GCP Project Name | required |
| ENV | string | Environment Type like qa, dev, prd | "qa" |
| VPC_NAME | string | Network Name | "custom-vpc" |
| REGION | string | GCP Region | "us-east1" |
vpc_uri — Designed VPC URI