Skip to main content
Updated May 10, 2026 Reserves a Raff floating IP — a public IP that’s held by the project and can be attached/detached/swapped between VMs. The IP is reserved until the resource is destroyed. To attach a reserved IP to a VM, use raff vm ip attach (the public API supports attach/detach but not via a Terraform attachment resource yet).

Example — minimal

That’s enough — defaults to IPv4 in the project’s default region.

Example — explicit

Argument reference

All arguments are optional. All are ForceNew — change one and Terraform releases the old IP and reserves a new one (which will be a different IP address).

Attribute reference (computed)

Lifecycle

Importing existing IPs

Permissions

The API key needs ip.reserve, ip.manage, and ip.release in the project. The system role Project Admin grants all of these.

Data sources

raff_vm

Compute the IP can be attached to.

CLI: raff ip

Imperative equivalent (incl. attach/detach/swap).

CLI: raff vm ip attach

Attach a reserved IP to a VM.
Last modified on May 11, 2026