Skip to content
Odinex Cloud
Terraform providerReferenceResources

odinex_elastic_ip_assignment

Assigns an Elastic IP to a server without public IPs. The ID is the Elastic IP ID. Do not set server_id on the odinex_elastic_ip at the same time.

Assigns an Elastic IP to a server without public IPs. The ID is the Elastic IP ID. Do not set server_id on the odinex_elastic_ip at the same time.

Example Usage

resource "odinex_elastic_ip_assignment" "app" {
  elastic_ip_id = odinex_elastic_ip.app.id
  server_id     = odinex_server.app.id
}

Schema

Required

  • elastic_ip_id (Number) ID of the Elastic IP.
  • server_id (Number) ID of the server.

Read-Only

  • id (String) Unique ID of the resource.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

# The ID is the Elastic IP ID.
terraform import odinex_elastic_ip_assignment.app 9

On this page