subnet

GMafra/subnet/gcp

Terraform Module HCL GCP

Terraform module for creating Subnets on Google Cloud

Install
module "subnet" {
source = "GMafra/subnet/gcp"
version = "1.0.0"
}
plain text: /constructs/tfmod-gmafra-subnet-gcp/install.txt
⭐ Source on GitHub 📦 Registry page
README

Subnetwork module for Google Cloud Platform Creates and manages Subnetworks within a VPC on GCP Basic usage ``hcl module subnet-module { source = "/Users/Gabriel/Terraform/GCP/modules/subnet-module" name = "tf-subnet" vpc = "tf-vpc" ip_cidr_range = "10.0.1.0/24" } ` It can also be used in conjunction with my VPC module to create VPC + Subnet `hcl module vpc-module { source = "git@github.com:GMafra/GCP-modules.git//vpc-module" name = "tf-vpc" } module subnet-module { source = "git@github.com:GMafra/GCP-modules.git//subnet-module" name = "tf-subnet" vpc = "${module.vpc-module.name}" ip_cidr_range = "10.0.1.0/24" } `` Variables |Name|Description|Type|Default|Required| |----|-----------|:----:|:-------:|:--------:| |name|Subnet name|String| - |Yes| |vpc|VPC to link the subnet to|String| - |Yes

Inputs (4)
NameTypeDescriptionDefault
ip_cidr_rangestringIP range - format 0.0.0.0/0 required
namestringSubnet name required
vpcstringVPC to link the subnet to required
subnet-regionstringZone associated with the subnet. Defaults to the region configured in the provid""
Outputs (4)
gateway_address — The IP address of the gateway.
self_link — The URI of the created resource
ip_cidr_range — The IP address range that machines in this network are assigned to, represented as a CIDR block
name — Subnetwork name
Resources (1)
google_compute_subnetwork
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.0
Cloud GCP
★ Stars1
Forks2
Total downloads5.7k
Inputs4
Outputs4
Resources1
LicenseMIT
NamespaceGMafra
Updated