» alicloud_cloud_connect_network_attachment

Provides a Cloud Connect Network Attachment resource. This topic describes how to associate a Smart Access Gateway (SAG) instance with a network instance. You must associate an SAG instance with a network instance if you want to connect the SAG to Alibaba Cloud. You can connect an SAG to Alibaba Cloud through a leased line, the Internet, or the active and standby links.

For information about Cloud Connect Network Attachment and how to use it, see What is Cloud Connect Network Attachment.

» Example Usage

Basic Usage

resource "alicloud_cloud_connect_network" "ccn" {
  name       = "tf-testAccCloudConnectNetworkAttachment-xxx"
  is_default = "true"

resource "alicloud_cloud_connect_network_attachment" "default" {
  ccn_id     = "${alicloud_cloud_connect_network.ccn.id}"
  sag_id     = "sag-xxxxx"
  depends_on = ["alicloud_cloud_connect_network.ccn"]

» Argument Reference

The following arguments are supported:

  • ccn_id - (Required,ForceNew) The ID of the CCN instance.
  • sag_id - (Required,ForceNew) The ID of the Smart Access Gateway instance.

» Attributes Reference

The following attributes are exported:

  • id - The ID of the Cloud Connect Network Attachment Id and formates as <ccn_id>:<sag_id>.

» Import

The Cloud Connect Network Attachment can be imported using the instance_id, e.g.

$ terraform import alicloud_cloud_connect_network_attachment.example ccn-abc123456:sag-abc123456