alicloud_ecd_network_package

更新时间:

Provides a ECD Network Package resource.

For information about ECD Network Package and how to use it, see What is Network Package.

-> NOTE: Available since v1.142.0.

Example Usage

Basic Usage


provider "alicloud" {
  region = "cn-hangzhou"
}

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_ecd_simple_office_site" "default" {
  cidr_block          = "172.16.0.0/12"
  enable_admin_access = true
  desktop_access_type = "Internet"
  office_site_name    = "terraform-example-${random_integer.default.result}"
}

resource "alicloud_ecd_network_package" "default" {
  bandwidth      = 10
  office_site_id = alicloud_ecd_simple_office_site.default.id
}

Argument Reference

The following arguments are supported:

  • bandwidth - (Required) The bandwidth of package public network bandwidth peak. Valid values: 1~200. Unit:Mbps.
  • internet_charge_type - (Optional, ForceNew) The internet charge type of package.
  • office_site_id - (Required, ForceNew) The ID of office site.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Network Package.
  • status - The status of network package. Valid values: Creating, InUse, Releasing,Released.

Import

ECD Network Package can be imported using the id, e.g.

$ terraform import alicloud_ecd_network_package.example <id>