Terraform providerReferenceResources
odinex_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).
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).
Example Usage
resource "odinex_elastic_ip" "app" {
name = "app"
location = "fra1"
}Schema
Optional
delete_protection(Boolean) Prevent the resource from being deleted. Defaults tofalse.labels(Map of String) User-defined labels (key/value pairs). Up to 64 pairs; keys and values up to 63 characters.location(String) Location of the Elastic IP. Required unlessserver_idis set.name(String) Name of the Elastic IP.server_id(Number) Server the IP is assigned to. The server must have no public IPs.timeouts(Block, Optional)
Read-Only
id(String) Unique ID of the resource.ip_address(String) The IP address.
Nested Schema for timeouts
Optional:
create(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).delete(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.update(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import odinex_elastic_ip.app 9