alicloud_express_connect_router_interface

Provides a Express Connect Router Interface resource.

For information about Express Connect Router Interface and how to use it, see What is Router Interface.

Example Usage

Basic Usage

variable "name" {
  default = "tf_example"
}
resource "alicloud_vpc" "default" {
  vpc_name   = var.name
  cidr_block = "172.16.0.0/12"
}
data "alicloud_regions" "default" {
  current = true
}
resource "alicloud_express_connect_router_interface" "default" {
  description           = var.name
  opposite_region_id    = data.alicloud_regions.default.regions.0.id
  router_id             = alicloud_vpc.default.router_id
  role                  = "InitiatingSide"
  router_type           = "VRouter"
  payment_type          = "PayAsYouGo"
  router_interface_name = var.name
  spec                  = "Mini.2"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:

Timeouts

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

Import

Express Connect Router Interface can be imported using the id, e.g.

$ terraform import alicloud_expressconnect_router_interface.example <id>