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 9odinex_elastic_ip
Manages an Elastic IP: a public IPv4 address NATed to a server without public IPs (its primary network needs an odinex_nat_gateway). Nothing is configured inside the guest. Assign it with server_id or with odinex_elastic_ip_assignment (not both).
odinex_firewall
Manages a firewall. Rules and targets (apply_to) are updated in place. Use either apply_to blocks or odinex_firewall_attachment, not both.