Usage
module "vpc" {
source = "github.com/fencepencil/gcp-modules//vpc"
project_id = "<project_id>"
name = "<name>"
subnets = { key = "value" }
tags = var.tags
}Inputs (6)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
project_id | string | GCP project ID | — | yes |
name | string | Name of the VPC network | — | yes |
subnets | map(object) | Subnet configurations | — | yes |
create_nat_gateway | bool | Create Cloud NAT gateways | true | no |
enable_flow_logs | bool | Enable VPC flow logs | false | no |
enable_iap | bool | Enable IAP SSH/RDP firewall rule | true | no |
Outputs (4)
| Name | Description |
|---|---|
network_id | ID of the VPC network |
network_name | Name of the VPC network |
network_self_link | Self link of the VPC |
subnet_ids | Map of subnet names to IDs |