cloud-foundation-fabric/modules/__experimental/net-neg
Ludovico Magnocavallo f6775aca1b
Use the same versions file everywhere, pin to tf 1.0+ provider 4.0+ (#355)
* add default versions file, remove old providers and versions

* use default versions file everywhere

* fix kms module

* re-add provider configuration for data platform step 2

* update kms module outputs sorting

* update kms documentation

* fix data solutions tests

* fix GKE workload identity attribute name

* work around firewall provider issue in datafusion example
2021-11-03 15:05:43 +01:00
..
README.md Add Network Endpoint Group module (#91) 2020-06-08 13:43:13 +02:00
main.tf Update copyright to 2021 2021-02-15 09:38:10 +01:00
outputs.tf Update copyright to 2021 2021-02-15 09:38:10 +01:00
variables.tf Update copyright to 2021 2021-02-15 09:38:10 +01:00
versions.tf Use the same versions file everywhere, pin to tf 1.0+ provider 4.0+ (#355) 2021-11-03 15:05:43 +01: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     = "./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