alicloud_router_interface

Provides a VPC router interface resource aim to build a connection between two VPCs.

Example Usage

resource "alicloud_vpc" "foo" {
  vpc_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:

Attributes Reference

The following attributes are exported:

Import

The router interface can be imported using the id, e.g.

$ terraform import alicloud_router_interface.interface ri-abc123456