日本熟妇hd丰满老熟妇,中文字幕一区二区三区在线不卡 ,亚洲成片在线观看,免费女同在线一区二区

alicloud_express_connect_router_tr_association

更新時間:

Provides a Express Connect Router Express Connect Router Tr Association resource. Leased line gateway and TR binding relationship object.

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

-> NOTE: Available since v1.224.0.

Example Usage

Basic Usage


variable "name" {
  default = "terraform-example"
}

provider "alicloud" {
  region = "cn-hangzhou"
}

variable "alowprefix1" {
  default = "10.0.0.0/24"
}

variable "allowprefix2" {
  default = "10.0.1.0/24"
}

variable "allowprefix3" {
  default = "10.0.2.0/24"
}

variable "allowprefix4" {
  default = "10.0.3.0/24"
}

variable "asn" {
  default = "4200001003"
}

resource "alicloud_express_connect_router_express_connect_router" "defaultpX0KlC" {
  alibaba_side_asn = var.asn
}

resource "alicloud_cen_instance" "default418DC9" {
  cen_instance_name = var.name
}

resource "alicloud_cen_transit_router" "defaultRYcjsc" {
  cen_id = alicloud_cen_instance.default418DC9.id
}

data "alicloud_account" "current" {
}

resource "alicloud_express_connect_router_tr_association" "default" {
  ecr_id                  = alicloud_express_connect_router_express_connect_router.defaultpX0KlC.id
  cen_id                  = alicloud_cen_instance.default418DC9.id
  transit_router_owner_id = data.alicloud_account.current.id
  allowed_prefixes = [
    "${var.alowprefix1}",
    "${var.allowprefix3}",
    "${var.allowprefix2}"
  ]
  transit_router_id     = alicloud_cen_transit_router.defaultRYcjsc.transit_router_id
  association_region_id = "cn-hangzhou"
}

Argument Reference

The following arguments are supported:

  • allowed_prefixes - (Optional) List of allowed route prefixes.
  • association_region_id - (Required, ForceNew) The region to which the VPC or TR belongs.
  • cen_id - (Optional, ForceNew) The ID of the CEN instance.
  • ecr_id - (Required, ForceNew) The ID of the leased line gateway instance.
  • transit_router_id - (Optional, ForceNew, Computed) The ID of the forwarding router instance.
  • transit_router_owner_id - (Optional, ForceNew) The ID of the Alibaba Cloud account to which the forwarding router belongs.

Attributes Reference

The following attributes are exported:

  • id - The ID of the resource supplied above.The value is formulated as <ecr_id>:<association_id>:<transit_router_id>.
  • association_id - The first ID of the resource.
  • create_time - The creation time of the resource.
  • status - The status of the resource.

Timeouts

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

  • create - (Defaults to 5 mins) Used when create the Express Connect Router Tr Association.
  • delete - (Defaults to 5 mins) Used when delete the Express Connect Router Tr Association.
  • update - (Defaults to 5 mins) Used when update the Express Connect Router Tr Association.

Import

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

$ terraform import alicloud_express_connect_router_tr_association.example <ecr_id>:<association_id>:<transit_router_id>