The elastic IP address is an address that belongs to a specific zone and may be attributed to many compute. See secondary_ipaddress.

Usage example

resource "exoscale_ipaddress" "myip" {
  zone = "ch-dk-2"
  tags = {
    usage = "load-balancer"

Argument Reference

  • zone - (Required) name of the data-center

  • tags - dictionary of tags (key / value)

Attributes Reference

  • ip_address - IP address


Importing an Elastic IP resource is possible by name or id.

# by name
$ terraform import exoscale_ipaddress.myip

# by id
$ terraform import exoscale_ipaddress.myip eb556678-ec59-4be6-8c54-0406ae0f6da6