Skip to content

data-platform-hq/terraform-google-vpc-networks

Repository files navigation

Google Virtual Private Cloud networks Terraform module

Terraform module for creating Google Virtual Private Cloud resources

Usage

Requirements

Name Version
terraform >= 1.0.0
google >= 4.69.0

Providers

Name Version
google 4.69.1

Modules

No modules.

Resources

Name Type
google_compute_network.vpc resource
google_compute_subnetwork.subnet resource

Inputs

Name Description Type Default Required
project_id ID of the project in which the resources should be created (for Datahub (alias) GCP project) string n/a yes
env Variable to mark the environment of the resource (used to create services) string n/a yes
prefix Cloud resources base name (used to create services) string n/a no
suffix Suffix for resource names string n/a no
vpc_config Configuration for VPCs and subnets object
({
name = string
subnets = optional(list(object({
name = string
region = string
subnet_cidr = string
secondary_ranges = optional(list(object({
range_name = string
range_cidr = string
})))
private_ip_google_access = optional(bool)
log_config = optional(object({
aggregation_interval = optional(string)
flow_sampling = optional(number)
metadata = optional(string)
}))
})))
})
no

Outputs

Name Description
vpc_name Name of the VPC network
subnet_id IDs of the created subnets per VPC
subnet_name Names of the created subnets per VPC

License

Apache 2 Licensed. For more information please see LICENSE

Packages

No packages published

Contributors 5

Languages