alicloud_express_connect_router_vbr_child_instance
更新时间:
Provides a Express Connect Router Express Connect Router Vbr Child Instance resource.
For information about Express Connect Router Express Connect Router Vbr Child Instance and how to use it, see What is Express Connect Router Vbr Child Instance.
-> NOTE: Available since v1.224.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
data "alicloud_express_connect_physical_connections" "nameRegex" {
name_regex = "^preserved-NODELETING"
}
resource "alicloud_express_connect_virtual_border_router" "defaultydbbk3" {
physical_connection_id = data.alicloud_express_connect_physical_connections.nameRegex.connections.0.id
vlan_id = "1000"
peer_gateway_ip = "192.168.254.2"
peering_subnet_mask = "255.255.255.0"
local_gateway_ip = "192.168.254.1"
}
resource "alicloud_express_connect_router_express_connect_router" "defaultAAlhUy" {
alibaba_side_asn = "65532"
}
data "alicloud_account" "current" {
}
resource "alicloud_express_connect_router_vbr_child_instance" "default" {
child_instance_id = alicloud_express_connect_virtual_border_router.defaultydbbk3.id
child_instance_region_id = "cn-hangzhou"
ecr_id = alicloud_express_connect_router_express_connect_router.defaultAAlhUy.id
child_instance_type = "VBR"
child_instance_owner_id = data.alicloud_account.current.id
}
Argument Reference
The following arguments are supported:
child_instance_id
- (Required, ForceNew) The ID of the leased line gateway subinstance.child_instance_owner_id
- (Optional, ForceNew, Computed, Int) The ID of the Alibaba Cloud account (primary account) to which the VBR instance belongs.
-> NOTE: This parameter is required if you want to load a cross-account network instance.
child_instance_region_id
- (Required, ForceNew) Region of the leased line gateway sub-instancechild_instance_type
- (Required, ForceNew) The type of the network instance. Value:VBR
: VBR instance.description
- (Optional, Available since v1.235.0) Resource attribute fields that represent descriptive informationecr_id
- (Required, ForceNew) ID of the representative leased line gateway instance.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as<ecr_id>:<child_instance_id>:<child_instance_type>
.create_time
- The creation time of the resource.status
- Binding relationship status of leased line gateway subinstances.
Timeouts
The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Express Connect Router Vbr Child Instance.delete
- (Defaults to 5 mins) Used when delete the Express Connect Router Vbr Child Instance.update
- (Defaults to 5 mins) Used when update the Express Connect Router Vbr Child Instance.
Import
Express Connect Router Express Connect Router Vbr Child Instance can be imported using the id, e.g.
$ terraform import alicloud_express_connect_router_vbr_child_instance.example <ecr_id>:<child_instance_id>:<child_instance_type>
文档内容是否对您有帮助?