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
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 IPv4 address.services
(Set of String) The list of the exoscale_nlb_service (names).state
(String) The current NLB state.
Nested Schema for timeouts
Optional:
create
(String)delete
(String)read
(String)update
(String)
-> 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.