Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 3.46 KB

README.md

File metadata and controls

54 lines (38 loc) · 3.46 KB

vpc and subnet module

This is the documentation for vpc and subnet module.

Summary

This module creates following resources -

  • vpc
  • subnet

Please read the documentation below to know details about the variables accepted by this module.

Requirements

Name Version
google 4.74.0

Providers

Name Version
google 4.74.0

Modules

No modules.

Resources

Name Type
google_compute_network.vpc resource
google_compute_subnetwork.subnet resource

Inputs

Name Description Type Default Required
cidrBlock The range of internal addresses that are owned by this subnetwork. Provide this property when you create the subnetwork. For example, 10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and non-overlapping within a network. Only IPv4 is supported. string n/a yes
region The GCP region for this subnetwork. string n/a yes
subnet_description An optional description of this resource. Provide this property when you create the resource. This field can be set only at resource creation time. string "" no
subnet_name The name of the resource, provided by the client when initially creating the resource. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. string n/a yes
vpc_description An optional description of this resource. The resource must be recreated to modify this field. string "" no
vpc_name Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. string n/a yes

Outputs

Name Description
subnet_id an identifier for the resource with format projects/{{project}}/regions/{{region}}/subnetworks/{{name}}
subnet_name subnet name
vpc_id an identifier for the resource with format projects/{{project}}/global/networks/{{name}}
vpc_name vpc network name