alicloud_cen_bandwidth_package_attachment
更新时间:
Provides a CEN bandwidth package attachment resource. The resource can be used to bind a bandwidth package to a specified CEN instance.
-> NOTE: Available since v1.18.0.
Example Usage
Basic Usage
resource "alicloud_cen_instance" "example" {
cen_instance_name = "tf_example"
description = "an example for cen"
}
resource "alicloud_cen_bandwidth_package" "example" {
bandwidth = 5
cen_bandwidth_package_name = "tf_example"
geographic_region_a_id = "China"
geographic_region_b_id = "China"
}
resource "alicloud_cen_bandwidth_package_attachment" "example" {
instance_id = alicloud_cen_instance.example.id
bandwidth_package_id = alicloud_cen_bandwidth_package.example.id
}
Argument Reference
The following arguments are supported:
instance_id
- (Required, ForceNew) The ID of the CEN.bandwidth_package_id
- (Required, ForceNew) The ID of the bandwidth package.
Attributes Reference
The following attributes are exported:
id
- ID of the resource, the same as bandwidth_package_id.
Timeouts
-> NOTE: Available in 1.206.0+.
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the CEN bandwidth package attachment.delete
- (Defaults to 5 mins) Used when delete the CEN bandwidth package attachment.
Import
CEN bandwidth package attachment resource can be imported using the id, e.g.
$ terraform import alicloud_cen_bandwidth_package_attachment.example bwp-abc123456
文档内容是否对您有帮助?