vpc

badal-io/vpc/google

Terraform Module HCL GOOGLE

A Terraform module that helps setting up VPC in GCP

Install
module "vpc" {
source = "badal-io/vpc/google"
version = "0.2.1"
}
plain text: /constructs/tfmod-badal-io-vpc-google/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform VPC Module A Terraform module that helps setting up VPC in GCP. Supports creating following: - A Google Virtual Private Network - Provision Custom Subnets or let Google create Auto Subnets Future Considerations to add: - Shared VPC - Routing Support Usage Example folder covers how to create VPC with either auto-created subnets or custom ones. The simplest config to get a VPC generated is shown below: ``hcl module "auto-vpc" { source = "github.com/muvaki/terraform-google-vpc" name = "test-vpc" } ` Beta Features This module supports the following beta features: - Private Service Ranges Ensure that your beta provider is set and named "google-beta" Inputs | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | name | A unique name for the th

Inputs (9)
NameTypeDescriptionDefault
subnetworkslist(object({ name Define subnetwork detail for VPC required
namestringThe name of the VPC being created.[[[=]]] required
services_addresslist(object({ name This object sets Private service connection required
projectstringThe project in which the resource belongs. If it is not provided, the provider p""
private_ip_google_accessboolWhether the VMs in this subnet can access Google services without assigned extertrue
enable_flow_logsboolWhether to enable flow logging for this subnetwork.true
module_dependencystringThis is a dummy value to great module dependency. Output from another module can""
auto_create_subnetworksstringIf set to true, this network will be created in auto subnet mode, and Google wil"true"
routing_modestringSets the network-wide routing mode for Cloud Routers to use. Accepted values are"GLOBAL"
Outputs (6)
name — Name of the created VPC
gateway_ipv4 — The IPv4 address of the gateway
self_link — The URI of the VPC created.
subnetworks_self_links — the list of subnetworks which belong to the network
service_network_address — Address of the service network
service_network_selflink — Self Link of the service network
Resources (4)
google_compute_global_addressgoogle_compute_networkgoogle_compute_subnetworkgoogle_service_networking_connection
Details
FrameworkTerraform Module
LanguageHCL
Version0.2.1
Cloud GOOGLE
★ Stars0
Forks0
Total downloads5.6k
Inputs9
Outputs6
Resources4
LicenseMIT
Namespacebadal-io
Updated