alicloud_common_bandwidth_package_attachment

Provides a cbwp Common Bandwidth Package Attachment resource. -> NOTE: Terraform will auto build common bandwidth package attachment while it uses alicloud_common_bandwidth_package_attachment to build a common bandwidth package attachment resource.

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

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

Example Usage

Basic Usage

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

resource "alicloud_common_bandwidth_package" "default" {
  bandwidth            = 3
  internet_charge_type = "PayByBandwidth"
}

resource "alicloud_eip_address" "default" {
  bandwidth            = "3"
  internet_charge_type = "PayByTraffic"
}

resource "alicloud_common_bandwidth_package_attachment" "default" {
  bandwidth_package_id        = alicloud_common_bandwidth_package.default.id
  instance_id                 = alicloud_eip_address.default.id
  bandwidth_package_bandwidth = "2"
  ip_type                     = "EIP"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

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

$ terraform import alicloud_common_bandwidth_package_attachment.example <bandwidth_package_id>:<instance_id>