alicloud_common_bandwidth_package

Provides a CBWP Common Bandwidth Package resource. -> NOTE: Terraform will auto build common bandwidth package instance while it uses alicloud_common_bandwidth_package to build a common bandwidth package resource.

For information about common bandwidth package billing methods, see Common Bandwidth Package Billing Methods.

For information about CBWP Common Bandwidth Package and how to use it, see What is Common Bandwidth Package.

Example Usage

Basic Usage

variable "name" {
  default = "terraform-example"
}

data "alicloud_resource_manager_resource_groups" "default" {
  status = "OK"
}

resource "alicloud_common_bandwidth_package" "default" {
  bandwidth_package_name    = var.name
  description               = var.name
  isp                       = "BGP"
  bandwidth                 = "1000"
  ratio                     = 100
  internet_charge_type      = "PayByBandwidth"
  resource_group_id         = data.alicloud_resource_manager_resource_groups.default.ids.0
  security_protection_types = ["AntiDDoS_Enhanced"]
}

Deleting alicloud_common_bandwidth_package or removing it from your configuration

The alicloud_common_bandwidth_package resource allows you to manage internet_charge_type = "PayBy95" instance, but Terraform cannot destroy it. Deleting the subscription resource or removing it from your configuration will remove it from your state file and management, but will not destroy the Instance. You can resume managing the subscription instance via the AlibabaCloud Console.

Argument Reference

The following arguments are supported:

The following arguments will be discarded. Please use new fields as soon as possible:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

CBWP Common Bandwidth Package can be imported using the id, e.g.

$ terraform import alicloud_common_bandwidth_package.example <id>