Skip to content

exoscale_nlb (Resource)

Manage Exoscale Network Load Balancers (NLB).

Corresponding data source: exoscale_nlb.

Example Usage

resource "exoscale_nlb" "my_nlb" {
  zone = "ch-gva-2"
  name = "my-nlb"
}

Next step is to attach exoscale_nlb_service(s) to the NLB.

Please refer to the examples directory for complete configuration examples.

Schema

Required

  • name (String) The network load balancer (NLB) name.
  • zone (String) ❗ The Exoscale Zone name.

Optional

  • address_family (String) ❗ The NLB address family (inet4|inet6; default: inet4).
  • description (String) A free-form text describing the NLB.
  • labels (Map of String) A map of key/value labels.
  • timeouts (Block, Optional) (see below for nested schema)

Read-Only

  • created_at (String) The NLB creation date.
  • id (String) The ID of this resource.
  • ip_address (String) The NLB public IP address (IPv4 or IPv6, depending on address_family).
  • services (Set of String) The list of the exoscale_nlb_service (IDs).
  • state (String) The current NLB state.

Nested Schema for timeouts

Optional:

  • create (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as “30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).
  • delete (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as “30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
  • read (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as “30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
  • update (String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as “30s” or “2h45m”. Valid time units are “s” (seconds), “m” (minutes), “h” (hours).

-> The symbol ❗ in an attribute indicates that modifying it, will force the creation of a new resource.

Import

An existing network load balancer (NLB) may be imported by <ID>@<zone>:

terraform import \
  exoscale_nlb.my_nlb \
  f81d4fae-7dec-11d0-a765-00a0c91e6bf6@ch-gva-2

~> NOTE: Importing an exoscale_nlb resource does not import related exoscale_nlb_service resources.

Last updated on