alicloud_cen_inter_region_traffic_qos_policy
更新时间:
Provides a Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy resource.
For information about Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy and how to use it, see What is Inter Region Traffic Qos Policy.
-> NOTE: Available since v1.195.0.
Example Usage
Basic Usage
provider "alicloud" {
alias = "bj"
region = "cn-beijing"
}
provider "alicloud" {
alias = "hz"
region = "cn-hangzhou"
}
resource "alicloud_cen_instance" "default" {
provider = alicloud.hz
cen_instance_name = "tf-example"
}
resource "alicloud_cen_bandwidth_package" "default" {
provider = alicloud.hz
bandwidth = 5
geographic_region_a_id = "China"
geographic_region_b_id = "China"
}
resource "alicloud_cen_bandwidth_package_attachment" "default" {
provider = alicloud.hz
instance_id = alicloud_cen_instance.default.id
bandwidth_package_id = alicloud_cen_bandwidth_package.default.id
}
resource "alicloud_cen_transit_router" "hz" {
provider = alicloud.hz
cen_id = alicloud_cen_bandwidth_package_attachment.default.instance_id
}
resource "alicloud_cen_transit_router" "bj" {
provider = alicloud.bj
cen_id = alicloud_cen_transit_router.hz.cen_id
}
resource "alicloud_cen_transit_router_peer_attachment" "default" {
provider = alicloud.hz
cen_id = alicloud_cen_instance.default.id
transit_router_id = alicloud_cen_transit_router.hz.transit_router_id
peer_transit_router_region_id = "cn-beijing"
peer_transit_router_id = alicloud_cen_transit_router.bj.transit_router_id
cen_bandwidth_package_id = alicloud_cen_bandwidth_package_attachment.default.bandwidth_package_id
bandwidth = 5
}
resource "alicloud_cen_inter_region_traffic_qos_policy" "default" {
provider = alicloud.hz
transit_router_id = alicloud_cen_transit_router.hz.transit_router_id
transit_router_attachment_id = alicloud_cen_transit_router_peer_attachment.default.transit_router_attachment_id
inter_region_traffic_qos_policy_name = "tf-example-name"
inter_region_traffic_qos_policy_description = "tf-example-description"
}
Argument Reference
The following arguments are supported:
transit_router_id
- (Required, ForceNew) The ID of the transit router.transit_router_attachment_id
- (Required, ForceNew) The ID of the inter-region connection.inter_region_traffic_qos_policy_name
- (Optional) The name of the QoS policy. The name must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). It must start with a letter.inter_region_traffic_qos_policy_description
- (Optional) The description of the QoS policy. The description must be 2 to 128 characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The description must start with a letter.
Attributes Reference
The following attributes are exported:
id
- The resource ID in terraform of Inter Region Traffic Qos Policy.status
- The status of the Inter Region Traffic Qos Policy.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 3 mins) Used when create the Inter Region Traffic Qos Policy.update
- (Defaults to 3 mins) Used when create the Inter Region Traffic Qos Policy.delete
- (Defaults to 3 mins) Used when delete the Inter Region Traffic Qos Policy.
Import
Cloud Enterprise Network (CEN) Inter Region Traffic Qos Policy can be imported using the id, e.g.
$ terraform import alicloud_cen_inter_region_traffic_qos_policy.example <id>
文档内容是否对您有帮助?