Resource

dcloud_eip_association

Points an Elastic IP at an instance. Its id is <elastic_ip_id>/<instance_id>.

Example Usage

resource "dcloud_eip_association" "web" {
  elastic_ip_id = dcloud_eip.web.id
  instance_id   = dcloud_instance.web.id
}

Schema

Required

  • elastic_ip_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.
  • instance_id (String) The instance to attach the address to (i-…). Must match ^i-[0-9a-f]{6,32}$. Changing it replaces the resource.

Read-Only

  • id (String) The resource's id.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_eip_association.web <elastic-ip-id>/<instance-id>

Generated from the provider's schema.