Provides a Cloud Enterprise Network (CEN) Transit Router Cidr resource.
For information about Cloud Enterprise Network (CEN) Transit Router Cidr and how to use it, see What is Transit Router Cidr.
Basic Usage
resource "alicloud_cen_instance" "example" {
cen_instance_name = "tf_example"
description = "an example for cen"
}
resource "alicloud_cen_transit_router" "example" {
transit_router_name = "tf_example"
cen_id = alicloud_cen_instance.example.id
}
resource "alicloud_cen_transit_router_cidr" "example" {
transit_router_id = alicloud_cen_transit_router.example.transit_router_id
cidr = "192.168.0.0/16"
transit_router_cidr_name = "tf_example"
description = "tf_example"
publish_cidr_route = true
}
The following arguments are supported:
transit_router_id
- (Required, ForceNew) The ID of the transit router.cidr
- (Required) The cidr of the transit router.transit_router_cidr_name
- (Optional) The name of the transit router. The name must be 2
to 128
characters in length, and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter but cannot start with http://
or https://
.description
- (Optional) The description of the transit router. The description must be 2
to 256
characters in length, and it must start with English letters, but cannot start with http://
or https://
.publish_cidr_route
- (Optional, Computed) Whether to allow automatically adding Transit Router Cidr in Transit Router Route Table. Valid values: true
and false
. Default value: true
.The following attributes are exported:
id
- The resource ID in terraform of Transit Router Cidr. It formats as <transit_router_id>:<transit_router_cidr_id>
transit_router_cidr_id
- The ID of the transit router cidr.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Transit Router Cidr.update
- (Defaults to 5 mins) Used when update the Transit Router Cidr.delete
- (Defaults to 5 mins) Used when delete the Transit Router Cidr.Cloud Enterprise Network (CEN) Transit Router Cidr can be imported using the id, e.g.
$ terraform import alicloud_cen_transit_router_cidr.default <transit_router_id>:<transit_router_cidr_id>.