On this page
alicloud_router_interface
Provides a VPC router interface resource to connect two VPCs by connecting the router interfaces .
NOTE: Only one pair of connected router interfaces can exist between two routers. Up to 5 router interfaces can be created for each router and each account.
Example Usage
resource "alicloud_vpc" "foo" {
name = "tf_test_foo12345"
cidr_block = "172.16.0.0/12"
}
resource "alicloud_router_interface" "interface" {
opposite_region = "cn-beijing"
router_type = "VRouter"
router_id = "${alicloud_vpc.foo.router_id}"
role = "InitiatingSide"
specification = "Large.2"
name = "test1"
description = "test1"
}
Argument Reference
The following arguments are supported:
opposite_region- (Required, Force New) The Region of peer side. At present, optional value:cn-beijing,cn-hangzhou,cn-shanghai,cn-shenzhen,cn-hongkong,ap-southeast-1,us-east-1,us-west-1.router_type- (Required, Forces New) Router Type. Optional value: VRouter, VBR.opposite_router_type- (Optional, Force New) Peer router type. Optional value:VRouter,VBR. Default toVRouter.router_id- (Required, Force New) Router ID. Whenrouter_typeis VBR, the VBR specified by therouter_idmust be in the access point specified byaccess_point_id.opposite_router_id- (Optional) Peer router ID. Whenopposite_router_typeis VBR, theopposite_router_idmust be in the access point specified byopposite_access_point_id.role- (Required, Force New) The role the router interface plays. Optional value:InitiatingSide,AcceptingSide.specification- (Optional) Specification of router interfaces. IfroleisAcceptingSide, the value can be ignore or must beNegative. For more about the specification, refer to Router interface specification.access_point_id- (Optional, Force New) Access point ID. Required whenrouter_typeisVBR. Prohibited whenrouter_typeisVRouter.opposite_access_point_id- (Optional, Force New) Access point ID of peer side. Required whenopposite_router_typeisVBR. Prohibited whenopposite_router_typeisVRouter.opposite_interface_id- (Optional) Peer router interface ID.opposite_interface_owner_id- (Optional) Peer account ID. Log on to the Alibaba Cloud console, select User Info > Account Management to check your account ID.name- (Optional) Name of the router interface. Length must be 2-80 characters long. Only Chinese characters, English letters, numbers, period (.), underline (_), or dash (-) are permitted. If it is not specified, the default value is interface ID. The name cannot start with http:// and https://.description- (Optional) Description of the router interface. It can be 2-256 characters long or left blank. It cannot start with http:// and https://.health_check_source_ip- (Optional) Used as the Packet Source IP of health check for disaster recovery or ECMP. It is only valid whenrouter_typeisVRouterandopposite_router_typeisVBR. The IP must be an unused IP in the local VPC. It andhealth_check_target_ipmust be specified at the same time.health_check_target_ip- (Optional) Used as the Packet Target IP of health check for disaster recovery or ECMP. It is only valid whenrouter_typeisVRouterandopposite_router_typeisVBR. The IP must be an unused IP in the local VPC. It andhealth_check_source_ipmust be specified at the same time.
NOTE: * If
router_typeisVBR, therolemust beInitiatingSideandopposite_router_typemust beVRouter. * Ifopposite_router_typeisVBR, therolemust beAcceptingSideandrouter_typemust beVRouter.
Attributes Reference
The following attributes are exported:
id- Router interface ID.router_id- Router ID.router_type- Router type.role- Router interface role.name- Router interface name.description- Router interface description.specification- Router nterface specification.access_point_id- Access point of the router interface.opposite_access_point_id- Access point of the opposite router interface.opposite_router_type- Peer router type.opposite_router_id- Peer router ID.opposite_interface_id- Peer router interface ID.opposite_interface_owner_id- Peer account ID.health_check_source_ip- Source IP of Packet of Line HealthCheck.health_check_target_ip- Target IP of Packet of Line HealthCheck.
© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/alicloud/r/router_interface.html