alicloud_express_connect_router_grant_association
更新时间:
Provides a Express Connect Router Grant Association resource.
Network instances authorized to the leased line Gateway.
For information about Express Connect Router Grant Association and how to use it, see What is Grant Association.
-> NOTE: Available since v1.239.0.
Example Usage
Basic Usage
variable "name" {
default = "terraform-example"
}
provider "alicloud" {
region = "cn-hangzhou"
}
variable "vpc_id" {
# You need to modify this value to an existing VPC under your account
default = "vpc-xxx"
}
variable "ecr_owner_uid" {
# You need to modify this value to ecr owner ali uid
default = "18xxx"
}
variable "ecr_id" {
# You need to modify this value to an existing ecr id
default = "ecr-xxx"
}
variable "region" {
default = "cn-hangzhou"
}
resource "alicloud_express_connect_router_grant_association" "default" {
ecr_id = var.ecr_id
instance_region_id = var.region
instance_id = var.vpc_id
ecr_owner_ali_uid = var.ecr_owner_uid
instance_type = "VPC"
}
Argument Reference
The following arguments are supported:
ecr_id
- (Required, ForceNew) The ID of the associated Leased Line Gateway instance.ecr_owner_ali_uid
- (Required, ForceNew, Int) The ID of the Alibaba Cloud account (primary account) to which the leased line gateway instance is authorized.instance_id
- (Required, ForceNew) The ID of the network instance.instance_region_id
- (Required, ForceNew) The ID of the region where the authorized network instance is located.instance_type
- (Required, ForceNew) The type of the network instance. Value:VBR
: the VBR instance.VPC
: VPC instance.
Attributes Reference
The following attributes are exported:
id
- The ID of the resource supplied above.The value is formulated as<ecr_id>:<instance_id>:<instance_region_id>:<ecr_owner_ali_uid>:<instance_type>
.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 Grant Association.delete
- (Defaults to 5 mins) Used when delete the Grant Association.
Import
Express Connect Router Grant Association can be imported using the id, e.g.
$ terraform import alicloud_express_connect_router_grant_association.example <ecr_id>:<instance_id>:<instance_region_id>:<ecr_owner_ali_uid>:<instance_type>
文档内容是否对您有帮助?