» ucloud_udpn_connection

UDPN (UCloud Dedicated Private Network),you can use Dedicated Private Network to achieve high-speed, stable, secure, and dedicated communications between different data centers. The most frequent scenario is to create network connection of clusters across regions.

» Example Usage

provider "ucloud" {
    region = "cn-bj2"
}

// connect provider's region (cn-bj2) and peer region (cn-sh2)
resource "ucloud_udpn_connection" "example" {
    bandwidth   = 2
    peer_region = "cn-sh2"
} 

» Argument Reference

The following arguments are supported:

  • bandwidth - (Optional) Maximum bandwidth to the elastic public network, measured in Mbps (Mega bit per second). range from 2 - 1000M. The default value is "1"
  • duration - (Optional) The duration that you will buy the resource, the default value is "1". It is not required when "dynamic" (pay by hour), the value is "0" when pay by month and the instance will be vaild till the last day of that month.
  • charge_type - (Optional) Charge type. Possible values are: "year" as pay by year, "month" as pay by month, "dynamic" as pay by hour. The default value is "month".
  • peer_region - (Optional) The correspondent region of dedicated connection, please refer to the region and availability zone list and UDPN price list.

» Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • create_time - The time of creation for UDPN connection, formatted by RFC3339 time string.
  • expire_time - The expiration time for UDPN connection, formatted by RFC3339 time string.

» Import

UDPN connection can be imported using the id, e.g.

$ terraform import ucloud_udpn_connection.example udpn-abc123456