cloud-foundation-fabric/modules/__experimental_deprecated/net-neg
Ludovico Magnocavallo 6941313c7d
Factories refactor (#1843)
* factories refactor doc

* Adds file schema and filesystem organization

* Update 20231106-factories.md

* move factories out of blueprints and create new factories  README

* align factory in billing-account module

* align factory in dataplex-datascan module

* align factory in billing-account module

* align factory in net-firewall-policy module

* align factory in dns-response-policy module

* align factory in net-vpc-firewall module

* align factory in net-vpc module

* align factory variable names in FAST

* remove decentralized firewall blueprint

* bump terraform version

* bump module versions

* update top-level READMEs

* move project factory to modules

* fix variable names and tests

* tfdoc

* remove changelog link

* add project factory to top-level README

* fix cludrun eventarc diff

* fix README

* fix cludrun eventarc diff

---------

Co-authored-by: Simone Ruffilli <sruffilli@google.com>
2024-02-26 10:16:52 +00:00
..
README.md Factories refactor (#1843) 2024-02-26 10:16:52 +00:00
main.tf Factories refactor (#1843) 2024-02-26 10:16:52 +00:00
outputs.tf Factories refactor (#1843) 2024-02-26 10:16:52 +00:00
variables.tf Factories refactor (#1843) 2024-02-26 10:16:52 +00:00
versions.tf Factories refactor (#1843) 2024-02-26 10:16:52 +00: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/__experimental/net-neg/"
  project_id = "myproject"
  name       = "myneg"
  network    = var.vpc.self_link
  subnetwork = var.subnet.self_link
  zone       = "europe-west1-b"
  endpoints = [
    for instance in module.vm.instances :
    {
      instance   = instance.name
      port       = 80
      ip_address = instance.network_interface[0].network_ip
    }
  ]
}
# tftest skip

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.