LoadBalancer
Creates and manages Load Balancers
Manages a Load Balancer on IonosCloud.
Example Usage
Argument reference
name
- (Required)[string] The name of the load balancer.datacenter_id
- (Required)[string] The ID of a Virtual Data Center.nic_ids
- (Required)[list] A list of NIC IDs that are part of the load balancer.dhcp
- (Optional)[Boolean] Indicates if the load balancer will reserve an IP using DHCP.ip
- (Optional)[string] IPv4 address of the load balancer.
Import
Resource Loadbalancer can be imported using the resource id
, e.g.
A note on nics
When declaring NIC resources to be used with the load balancer, please make sure you use the "lifecycle meta-argument" to make sure changes to the lan attribute of the nic are ignored.
Please see the nic resource's documentation for an example on how to do that.
Last updated