alicloud_cen_bandwidth_package

Provides a CEN bandwidth package resource. The CEN bandwidth package is an abstracted object that includes an interconnection bandwidth and interconnection areas. To buy a bandwidth package, you must specify the areas to connect. An area consists of one or more Alibaba Cloud regions. The areas in CEN include Mainland China, Asia Pacific, North America, and Europe.

For information about CEN and how to use it, see Manage bandwidth packages.

Example Usage

Basic Usage

resource "alicloud_cen_bandwidth_package" "example" {
  bandwidth                  = 5
  cen_bandwidth_package_name = "tf_example"
  geographic_region_a_id     = "China"
  geographic_region_b_id     = "China"
}

Deleting alicloud_cen_bandwidth_package or removing it from your configuration

The alicloud_cen_bandwidth_package resource allows you to manage payment_type = "PrePaid" bandwidth package, but Terraform cannot destroy it. Deleting the subscription resource or removing it from your configuration will remove it from your statefile and management, but will not destroy the Bandwidth Package. You can resume managing the subscription bandwidth package via the AlibabaCloud Console.

Argument Reference

The following arguments are supported:

->NOTE: PrePaid mode will deduct fees from the account directly and the bandwidth package can't be deleted before expired time.

->NOTE: The PostPaid mode is only for test. Please open a ticket if you need.

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

CEN bandwidth package can be imported using the id, e.g.

$ terraform import alicloud_cen_bandwidth_package.example cenbwp-abc123456