alicloud_cen_transit_router_grant_attachment

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.

Example Usage

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"
}

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

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>