IP Failover

Creates and manages ipfailover objects.

Manages IP Failover groups on IonosCloud.

Example Usage

resource "ionoscloud_ipfailover" "failovertest" {
  datacenter_id = "datacenterId"
  lan_id="lanId"
  ip ="reserved IP"
  nicuuid= "nicId"
}

Argument reference

  • datacenter_id - (Required)[string] The ID of a Virtual Data Center.

  • ip - (Required)[string] The reserved IP address to be used in the IP failover group.

  • lan_id - (Required)[string] The ID of a LAN.

  • nicuuid - (Required)[string] The ID of a NIC.

Import

Resource IpFailover can be imported using the resource id, e.g.

terraform import ionoscloud_ipfailover.myipfailover {datacenter uuid}/{lan uuid}

A note on multiple NICs on an IP Failover

If you want to add a secondary NIC to an IP Failover, follow these steps:

  1. Creating NIC A with failover IP on LAN 1

  2. Create NIC B unde the same LAN but with a different IP

  3. Create the IP Failover on LAN 1 with NIC A and failover IP of NIC A (A becomes now "master", no slaves)

  4. Update NIC B IP to be the failover IP ( B becomes now a slave, A remains master)

After this you can create a new NIC C, NIC D and so on, in LAN 1, directly with the failover IP.

Please check examples for a full example with the above steps.

Last updated