cloud-foundation-fabric/modules/__experimental/net-neg
Julio Castillo 1a3bb25917 Update provider version (needed for dns logging support). 2022-10-25 12:15:02 +02:00
..
README.md Test documentation examples in the examples/ folder 2022-09-06 17:46:09 +02:00
main.tf Copyright bump (#410) 2022-01-01 15:52:31 +01:00
outputs.tf Add periods at the end of each description field where missing (#478) 2022-01-31 10:45:34 +01:00
variables.tf Add periods at the end of each description field where missing (#478) 2022-01-31 10:45:34 +01:00
versions.tf Update provider version (needed for dns logging support). 2022-10-25 12:15:02 +02:00

README.md

Network Endpoint Group Module

This modules allows creating zonal network endpoint groups.

Note: this module will integrated into a general-purpose load balancing module in the future.

Example

module "neg" {
  source     = "./fabric/modules/net-neg"
  project_id = "myproject"
  name       = "myneg"
  network    = module.vpc.self_link
  subnetwork = module.vpc.subnet_self_links["europe-west1/default"]
  zone       = "europe-west1-b"
  endpoints = [
    for instance in module.vm.instances :
    {
      instance   = instance.name
      port       = 80
      ip_address = instance.network_interface[0].network_ip
    }
  ]
}

Variables

name description type required default
endpoints List of (instance, port, address) of the NEG. list(object({…}))
name NEG name. string
network Name or self link of the VPC used for the NEG. Use the self link for Shared VPC. string
project_id NEG project id. string
subnetwork VPC subnetwork name or self link. string
zone NEG zone. string

Outputs

name description sensitive
id Network endpoint group ID.
self_lnk Network endpoint group self link.
size Size of the network endpoint group.