raff vm ip attach (the public API supports attach/detach but not via a Terraform attachment resource yet).
Example — minimal
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 needsip.reserve, ip.manage, and ip.release in the project. The system role Project Admin grants all of these.
Data sources
Related
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.