Provides a Cloud Enterprise Network (CEN) Transit Router Grant Attachment resource.
For information about Cloud Enterprise Network (CEN) Transit Router Grant Attachment and how to use it, see What is Transit Router Grant Attachment.
Basic Usage
data "alicloud_account" "default" {}
resource "alicloud_vpc" "example" {
vpc_name = "tf_example"
cidr_block = "172.17.3.0/24"
}
resource "alicloud_cen_instance" "example" {
cen_instance_name = "tf_example"
description = "an example for cen"
}
resource "alicloud_cen_transit_router_grant_attachment" "example" {
cen_id = alicloud_cen_instance.example.id
cen_owner_id = data.alicloud_account.default.id
instance_id = alicloud_vpc.example.id
instance_type = "VPC"
order_type = "PayByCenOwner"
}
The following arguments are supported:
cen_id
- (Required, ForceNew) The ID of the Cloud Enterprise Network (CEN) instance to which the transit router belongs.cen_owner_id
- (Required, ForceNew) The ID of the Alibaba Cloud account to which the CEN instance belongs.instance_id
- (Required, ForceNew) The ID of the network instance.instance_type
- (Required, ForceNew) The type of the network instance. Valid values: VPC
, ExpressConnect
, VPN
.order_type
- (Optional, Computed, ForceNew) The entity that pays the fees of the network instance. Valid values: PayByResourceOwner
, PayByCenOwner
.The following attributes are exported:
id
- The resource ID of Transit Router Grant Attachment. The value formats as <instance_type>:<instance_id>:<cen_owner_id>:<cen_id>
.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 1 mins) Used when creating the cen transit router grant attachment.delete
- (Defaults to 1 mins) Used when delete the cen transit router grant attachment.Cloud Enterprise Network (CEN) Transit Router Grant Attachment can be imported using the id, e.g.
$ terraform import alicloud_cen_transit_router_grant_attachment.example <instance_type>:<instance_id>:<cen_owner_id>:<cen_id>