tasdikrahman / terraform-google-network-subnet

Terraform module : GCP : for creation of subnet inside a VPC network

Home Page:https://registry.terraform.io/modules/tasdikrahman/network-subnet/google

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subnetwork - Network Google Cloud Platform

Manages a subnetwork within GCE.

Example (minimum)
module "personal-vpc" {
  source = "tasdikrahman/network/google"
  name   = "${var.vpc_name}"
}

module "subnet-personal-vpc" {
  source            = "tasdikrahman/network-subnet/google"
  name              = "${var.subnet_name}"
  vpc               = "${module.personal-vpc.self_link}"
  subnetwork-region = "${var.subnetwork_region}"
  ip_cidr_range     = "${var.ip_cidr_range}"
}

Inputs

Name Description Type Default Required
name Network name to create on GCP string - yes
vpc Name of the VPC you want to create the subnet in string - yes
subnetwork-region The region this subnetwork will be created in. If unspecified, this defaults to the region configured in the provider. string - no
ip_cidr_range The IP address range that machines in this network are assigned to string - yes

Outputs

Name Description
gateway_address The IP address of the gateway
self_link The URL of the created resource

Docs

License

MIT License

About

Terraform module : GCP : for creation of subnet inside a VPC network

https://registry.terraform.io/modules/tasdikrahman/network-subnet/google

License:MIT License


Languages

Language:HCL 100.0%