Resource
dcloud_eip
An Elastic IP: a public IPv4 address the organization keeps until it releases it, whatever instance it points at. Attach it with dcloud_eip_association. It is billed from allocation, attached or not.
Example Usage
resource "dcloud_eip" "web" {
tags = { env = "prod" }
}Schema
Optional
project(String) The project (its slug) the resource lives in. At create: this, else the provider'sproject, else Default. Changing it moves the resource and its parts; it is never replaced.region_id(String) The region to allocate the address in, e.g. de1 Defaults to the provider'sregion. Changing it replaces the resource.tags(Map of String) Tags, key → value. Once set here, only these keys are managed; tags Deutsche Cloud adds itself are left alone.
Read-Only
allocation_id(String) The allocation id (ewalloc-…).id(String) The resource's id.instance_id(String) The instance it is attached to, if any.public_ip(String) The address.
Import
Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import dcloud_eip.web <elastic-ip-id>Generated from the provider's schema.
Related