alicloud_cen_transit_route_table_aggregation

更新时间:

Provides a Cloud Enterprise Network (CEN) Transit Route Table Aggregation resource.

For information about Cloud Enterprise Network (CEN) Transit Route Table Aggregation and how to use it, see What is Transit Route Table Aggregation.

-> NOTE: Available since v1.202.0.

Example Usage

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_route_table" "example" {
  transit_router_id = alicloud_cen_transit_router.example.transit_router_id
}

resource "alicloud_cen_transit_route_table_aggregation" "example" {
  transit_route_table_id                      = alicloud_cen_transit_router_route_table.example.transit_router_route_table_id
  transit_route_table_aggregation_cidr        = "10.0.0.0/8"
  transit_route_table_aggregation_scope       = "VPC"
  transit_route_table_aggregation_name        = "tf_example"
  transit_route_table_aggregation_description = "tf_example"
}

Argument Reference

The following arguments are supported:

  • transit_route_table_id - (Required, ForceNew) The ID of the route table of the Enterprise Edition transit router.
  • transit_route_table_aggregation_cidr - (Required, ForceNew) The destination CIDR block of the aggregate route. CIDR blocks that start with 0 or 100.64. Multicast CIDR blocks, including 224.0.0.1 to 239.255.255.254.
  • transit_route_table_aggregation_scope - (Required, ForceNew) The scope of networks that you want to advertise the aggregate route. Valid Value: VPC.
  • transit_route_table_aggregation_name - (Optional, ForceNew) The name of the aggregate route.
  • transit_route_table_aggregation_description - (Optional, ForceNew) The description of the aggregate route.

Attributes Reference

The following attributes are exported:

  • id - The resource ID in terraform of Transit Route Table Aggregation. It formats as <transit_route_table_id>:<transit_route_table_aggregation_cidr>.
  • status - The status of the Transit Route Table Aggregation.

Timeouts

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

  • create - (Defaults to 3 mins) Used when create the Transit Route Table Aggregation.
  • delete - (Defaults to 3 mins) Used when delete the Transit Route Table Aggregation.

Import

Cloud Enterprise Network (CEN) Transit Route Table Aggregation can be imported using the id, e.g.

$ terraform import alicloud_cen_transit_route_table_aggregation.example <transit_route_table_id>:<transit_route_table_aggregation_cidr>