From 3793d99336e98bb3ff57858c1d0001c3985b808a Mon Sep 17 00:00:00 2001 From: d-bhola Date: Thu, 14 Nov 2024 10:03:24 -0800 Subject: [PATCH 01/10] CXF-99867: Port to Alibaba Example --- examples/port-2-alibaba2-connection/README.md | 69 +++++++++ examples/port-2-alibaba2-connection/main.tf | 66 +++++++++ .../port-2-alibaba2-connection/outputs.tf | 26 ++++ .../terraform.tfvars.example | 30 ++++ .../port-2-alibaba2-connection/variables.tf | 138 ++++++++++++++++++ .../port-2-alibaba2-connection/versions.tf | 9 ++ 6 files changed, 338 insertions(+) create mode 100644 examples/port-2-alibaba2-connection/README.md create mode 100644 examples/port-2-alibaba2-connection/main.tf create mode 100644 examples/port-2-alibaba2-connection/outputs.tf create mode 100644 examples/port-2-alibaba2-connection/terraform.tfvars.example create mode 100644 examples/port-2-alibaba2-connection/variables.tf create mode 100644 examples/port-2-alibaba2-connection/versions.tf diff --git a/examples/port-2-alibaba2-connection/README.md b/examples/port-2-alibaba2-connection/README.md new file mode 100644 index 0000000..86300c9 --- /dev/null +++ b/examples/port-2-alibaba2-connection/README.md @@ -0,0 +1,69 @@ +# Fabric Port to Fabric Alibaba Profile Connection + +This example shows how to leverage the [Fabric Port Connection Module](https://registry.terraform.io/modules/equinix/fabric/equinix/latest/submodules/port-connection) +to create a Fabric Connection from a Fabric Port to Fabric Alibaba Service Profile. + +It leverages the Equinix Terraform Provider, the Alibaba Terraform Provider, Fabric Port Connection +Module and various Alibaba resources to setup the connection based on the parameters you have provided to this example; or based on the pattern +you see used in this example it will allow you to create a more specific use case for your own needs. + +Here is a guide with step-by-step instructions for creating a connection using the Equinix Terraform Provider and the Alibaba Terraform Provider. +By following these steps, you will be able to: + +1. Setup a connection through Equinix Fabric. +2. Configure and accept the connection in the Alibaba Portal. +3. Manage resources effectively using Terraform. +4. Handle cleanup operations smoothly + +### Step by Step Instructions for Fabric Port to Fabric Alibaba Profile Connection + +#### 1. Create Connection from Equinix Terraform Provider + +Use Fabric Port Connection Module to set up the connection based on the parameters provided. + +**Note:** The `connection_name` must follow one of these patterns: +* A unique `connection_name` with at most 24 characters. +* A `connection_name` with at most 12 characters combined with a random string: + `connection_name = "${var.connection_name}${random_string.random.result}"` + +**Result of this step:** +* A unique connection_name is generated, containing a 12-character random string appended to the given name. +* The connection is created and appears in the Connections Inventory in the Fabric Portal. +* An Express Connect Physical Connection resource is created and visible in the Alibaba Console. + +#### 2. Formulate main.tf and output.tf Files +Use the following resources and data sources from the example (place them as comments initially): + +`data "alicloud_express_connect_physical_connections" {}` + +` resource "alicloud_express_connect_virtual_border_router" {}` + +`resource "null_resource" {}` + +`output alicloud_express_connect_virtual_border_router {}` + +`output alicloud_express_connect_virtual_border_router_id {}` + +#### 3. Accept the Connection Request +Manually accept the connection request in the Alibaba Portal for the created physical connection. + +#### 4. Create the Virtual Border Router (VBR) Resource +Remove the commented code for the VBR resource and the resource for the previously created physical connection. + +Result of this step: +The VBR resource is created successfully and linked to the physical connection. + +#### 5. [Cleanup] Delete Resources +1. Delete the VBR using terraform +2. Terminate and delete the connection manually using the Alibaba Portal + + *Note:* If you attempt to delete the Fabric connection directly, you will encounter an error: + `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` + + +See example usage below for details on how to use this example. + + + + + diff --git a/examples/port-2-alibaba2-connection/main.tf b/examples/port-2-alibaba2-connection/main.tf new file mode 100644 index 0000000..d01c061 --- /dev/null +++ b/examples/port-2-alibaba2-connection/main.tf @@ -0,0 +1,66 @@ +provider "equinix" { + client_id = var.equinix_client_id + client_secret = var.equinix_client_secret +} + +provider "alicloud" { + access_key = var.access_key + secret_key = var.secret_key + region = var.region +} + +resource "random_string" "random" { + length = 12 + special = true + override_special = "@_-" +} + +module "create_port_2_alibaba_connection" { + source = "../../modules/port-connection" + + connection_name = "${var.connection_name}${random_string.random.result}" + connection_type = var.connection_type + notifications_type = var.notifications_type + notifications_emails = var.notifications_emails + bandwidth = var.bandwidth + purchase_order_number = var.purchase_order_number + project_id = var.project_id + + # A-side + aside_port_name = var.aside_port_name + aside_vlan_tag = var.aside_vlan_tag + + # Z-side + zside_ap_type = var.zside_ap_type + zside_ap_authentication_key = var.zside_ap_authentication_key + zside_ap_profile_type = var.zside_ap_profile_type + zside_location = var.zside_location + zside_seller_region = var.zside_seller_region + zside_sp_name = var.zside_sp_name +} + +data "alicloud_express_connect_physical_connections" "nameRegex" { + name_regex = "^${module.create_port_2_alibaba_connection.primary_connection.name}" +} + +resource "alicloud_express_connect_virtual_border_router" "vbr" { + local_gateway_ip = var.local_gateway_ip + peer_gateway_ip = var.peer_gateway_ip + peering_subnet_mask = var.peering_subnet_mask + physical_connection_id = data.alicloud_express_connect_physical_connections.nameRegex.connections[0].id + virtual_border_router_name = var.virtual_border_router_name + vlan_id = one(one(one(module.create_port_2_alibaba_connection.primary_connection.z_side).access_point).link_protocol).vlan_tag + min_rx_interval = var.min_rx_interval + min_tx_interval = var.min_tx_interval + detect_multiplier = var.detect_multiplier +} + +resource "null_resource" "destroy_warning" { + triggers = { + warning = "WARNING: Destroy process is not complete yet. You need to delete the instance from Alibaba Console!" + } +} + +data "alicloud_express_connect_virtual_border_routers" "nameRegexVbr" { + name_regex = "^${alicloud_express_connect_virtual_border_router.vbr.virtual_border_router_name}" +} diff --git a/examples/port-2-alibaba2-connection/outputs.tf b/examples/port-2-alibaba2-connection/outputs.tf new file mode 100644 index 0000000..361f3f2 --- /dev/null +++ b/examples/port-2-alibaba2-connection/outputs.tf @@ -0,0 +1,26 @@ +output "alibaba_connection" { + value = module.create_port_2_alibaba_connection.primary_connection + sensitive = true +} + +output "alibaba_connection_id" { + value = module.create_port_2_alibaba_connection.primary_connection_id +} + +output "connection_name" { + value = var.connection_name + description = "The connection name used for this port connection" +} + +output "alicloud_express_connect_virtual_border_router" { + value = alicloud_express_connect_virtual_border_router.vbr + sensitive = true +} + +output "alicloud_express_connect_virtual_border_router_id" { + value = alicloud_express_connect_virtual_border_router.vbr.id +} + +output "express_connect_virtual_border_router_id" { + value = data.alicloud_express_connect_virtual_border_routers.nameRegexVbr.routers.0.id +} diff --git a/examples/port-2-alibaba2-connection/terraform.tfvars.example b/examples/port-2-alibaba2-connection/terraform.tfvars.example new file mode 100644 index 0000000..ea00a5f --- /dev/null +++ b/examples/port-2-alibaba2-connection/terraform.tfvars.example @@ -0,0 +1,30 @@ +equinix_client_id = "MyEquinixClientId" +equinix_client_secret = "MyEquinixSecret" + +connection_name = "Port_2_alibaba" +connection_type = "EVPL_VC" +notifications_type = "ALL" +notifications_emails = ["example@equinix.com"] +bandwidth = 50 +purchase_order_number = "1-323292" +aside_port_name = "sit-tb1-dc-e5.tlab,10GSMF,A,001,201257, 21951980" +aside_vlan_tag = "2019" +zside_ap_type = "SP" +zside_ap_authentication_key = "" +zside_ap_profile_type = "L2_PROFILE" +zside_location = "SY" +zside_sp_name = "Alibaba Cloud Express Connect" +zside_seller_region = "ap-southeast-2" +zside_ap_profile_type = "L2_PROFILE" +zside_ap_type = "SP" +zside_location = "SV" +zside_seller_region = "us-west-1" +zside_sp_name = "Alibaba Cloud Express Connect" +region = "us-west-1" +local_gateway_ip = "10.0.0.1" +peer_gateway_ip = "10.0.0.2" +peering_subnet_mask = "255.255.255.252" +virtual_border_router_name = "Port_2_Alibaba_VBR" +min_rx_interval = 1000 +min_tx_interval = 1000 +detect_multiplier = 10 diff --git a/examples/port-2-alibaba2-connection/variables.tf b/examples/port-2-alibaba2-connection/variables.tf new file mode 100644 index 0000000..9843a12 --- /dev/null +++ b/examples/port-2-alibaba2-connection/variables.tf @@ -0,0 +1,138 @@ +variable "equinix_client_id" { + description = "Equinix client ID (consumer key), obtained after registering app in the developer platform" + type = string + sensitive = true +} +variable "equinix_client_secret" { + description = "Equinix client secret ID (consumer secret), obtained after registering app in the developer platform" + type = string + sensitive = true +} +variable "connection_name" { + description = "Connection name. An alpha-numeric 24 characters string which can include only hyphens and underscores" + type = string +} +variable "project_id" { + description = "Subscriber-assigned project ID" + type = string + default = "" +} +variable "connection_type" { + description = "Defines the connection type like VG_VC, EVPL_VC, EPL_VC, EC_VC, IP_VC, ACCESS_EPL_VC" + type = string +} +variable "notifications_type" { + description = "Notification Type - ALL is the only type currently supported" + type = string + default = "ALL" +} +variable "notifications_emails" { + description = "Array of contact emails" + type = list(string) +} +variable "bandwidth" { + description = "Connection bandwidth in Mbps" + type = number +} +variable "purchase_order_number" { + description = "Purchase order number" + type = string + default = "" +} +variable "aside_port_name" { + description = "Equinix A-Side Port Name" + type = string +} +variable "aside_vlan_tag" { + description = "Vlan Tag information, outer vlanSTag for QINQ connections" + type = string +} +variable "aside_vlan_inner_tag" { + description = "Vlan Inner Tag information, inner vlanCTag for QINQ connections" + type = string + default = "" +} +variable "zside_ap_type" { + description = "Access point type - COLO, VD, VG, SP, IGW, SUBNET, GW" + type = string +} +variable "zside_ap_authentication_key" { + description = "Authentication key for provider based connections" + type = string + sensitive = true +} +variable "zside_ap_profile_type" { + description = "Service profile type - L2_PROFILE, L3_PROFILE, ECIA_PROFILE, ECMC_PROFILE" + type = string +} +variable "zside_location" { + description = "Access point metro code" + type = string +} +variable "zside_sp_name" { + description = "Equinix Service Profile Name" + type = string +} +variable "zside_seller_region" { + description = "Access point seller region" + type = string +} +variable "region" { + description = "Region" + type = string +} +variable "access_point_id" { + description = "Access Point ID" + type = string + default = "" +} +variable "local_gateway_ip" { + description = "Local Gateway IP" + type = string + default = "" +} +variable "peer_gateway_ip" { + description = "Peer Gateway IP" + type = string + default = "" +} +variable "peering_subnet_mask" { + description = "Peering Subnet Mask" + type = string + default = "" +} +variable "vlan_id" { + description = "Vlan ID" + type = string + default = "" +} +variable "min_rx_interval" { + description = "Minimum RX Interval" + type = string + default = "" +} +variable "min_tx_interval" { + description = "Minimum TX Interval" + type = string + default = "" +} +variable "detect_multiplier" { + description = "Detect Multiplier" + type = string + default = "" +} +variable "virtual_border_router_name" { + description = "Virtual Border Router Name" + type = string + default = "" +} +variable "access_key" { + description = "Access Key" + type = string + sensitive = true +} +variable "secret_key" { + description = "Secret Key" + type = string + sensitive = true +} diff --git a/examples/port-2-alibaba2-connection/versions.tf b/examples/port-2-alibaba2-connection/versions.tf new file mode 100644 index 0000000..327dda0 --- /dev/null +++ b/examples/port-2-alibaba2-connection/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">= 1.5.4" + required_providers { + equinix = { + source = "equinix/equinix" + version = ">= 2.9.0" + } + } +} From 1c98dc721c06478b1b70a7c550abfaa27e873a81 Mon Sep 17 00:00:00 2001 From: d-bhola Date: Thu, 14 Nov 2024 20:31:35 -0800 Subject: [PATCH 02/10] CXF-99867: Fix special characters error and minor improvements --- examples/port-2-alibaba2-connection/README.md | 44 +++++++++---------- examples/port-2-alibaba2-connection/main.tf | 5 +-- .../terraform.tfvars.example | 7 ++- 3 files changed, 30 insertions(+), 26 deletions(-) diff --git a/examples/port-2-alibaba2-connection/README.md b/examples/port-2-alibaba2-connection/README.md index 86300c9..1d35e08 100644 --- a/examples/port-2-alibaba2-connection/README.md +++ b/examples/port-2-alibaba2-connection/README.md @@ -1,35 +1,38 @@ # Fabric Port to Fabric Alibaba Profile Connection -This example shows how to leverage the [Fabric Port Connection Module](https://registry.terraform.io/modules/equinix/fabric/equinix/latest/submodules/port-connection) -to create a Fabric Connection from a Fabric Port to Fabric Alibaba Service Profile. - -It leverages the Equinix Terraform Provider, the Alibaba Terraform Provider, Fabric Port Connection -Module and various Alibaba resources to setup the connection based on the parameters you have provided to this example; or based on the pattern -you see used in this example it will allow you to create a more specific use case for your own needs. - Here is a guide with step-by-step instructions for creating a connection using the Equinix Terraform Provider and the Alibaba Terraform Provider. By following these steps, you will be able to: 1. Setup a connection through Equinix Fabric. 2. Configure and accept the connection in the Alibaba Portal. 3. Manage resources effectively using Terraform. -4. Handle cleanup operations smoothly +4. Handle cleanup operations effciently ### Step by Step Instructions for Fabric Port to Fabric Alibaba Profile Connection #### 1. Create Connection from Equinix Terraform Provider -Use Fabric Port Connection Module to set up the connection based on the parameters provided. +This example shows how to leverage the [Fabric Port Connection Module](https://registry.terraform.io/modules/equinix/fabric/equinix/latest/submodules/port-connection) +to create a Fabric Connection from a Fabric Port to Fabric Alibaba Service Profile. -**Note:** The `connection_name` must follow one of these patterns: -* A unique `connection_name` with at most 24 characters. -* A `connection_name` with at most 12 characters combined with a random string: +It leverages the Equinix Terraform Provider, the Alibaba Terraform Provider, Fabric Port Connection +Module and various Alibaba resources to setup the connection based on the parameters you have provided to this example; or based on the pattern +you see used in this example it will allow you to create a more specific use case for your own needs. + +See the example usage (provided after the steps) for details on how to use this example. + +**Note:** The `connection_name` must follow either one of these patterns: + +* A unique `connection_name` with atmost 24 characters. +`connection_name = var.connection_name` + +* A `connection_name` with atmost 12 characters combined with a random string of 12 characters: `connection_name = "${var.connection_name}${random_string.random.result}"` **Result of this step:** -* A unique connection_name is generated, containing a 12-character random string appended to the given name. -* The connection is created and appears in the Connections Inventory in the Fabric Portal. -* An Express Connect Physical Connection resource is created and visible in the Alibaba Console. +* A unique `connection_name` is generated by appending a 12-character random string to the provided name. +* A Fabric Port to Alibaba Profile Connection is successfully created and displayed in the Fabric Portal. +* An Express Connect Physical Connection resource is created and becomes visible in the Alibaba Portal. #### 2. Formulate main.tf and output.tf Files Use the following resources and data sources from the example (place them as comments initially): @@ -48,20 +51,17 @@ Use the following resources and data sources from the example (place them as com Manually accept the connection request in the Alibaba Portal for the created physical connection. #### 4. Create the Virtual Border Router (VBR) Resource -Remove the commented code for the VBR resource and the resource for the previously created physical connection. +Remove the commented code to create the VBR resource -Result of this step: +**Result of this step:** The VBR resource is created successfully and linked to the physical connection. #### 5. [Cleanup] Delete Resources 1. Delete the VBR using terraform 2. Terminate and delete the connection manually using the Alibaba Portal - *Note:* If you attempt to delete the Fabric connection directly, you will encounter an error: - `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` - - -See example usage below for details on how to use this example. +*Note:* If you attempt to delete the Fabric connection directly, you will encounter the following error: +`ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` diff --git a/examples/port-2-alibaba2-connection/main.tf b/examples/port-2-alibaba2-connection/main.tf index d01c061..63bfe5e 100644 --- a/examples/port-2-alibaba2-connection/main.tf +++ b/examples/port-2-alibaba2-connection/main.tf @@ -11,8 +11,7 @@ provider "alicloud" { resource "random_string" "random" { length = 12 - special = true - override_special = "@_-" + special = false } module "create_port_2_alibaba_connection" { @@ -57,7 +56,7 @@ resource "alicloud_express_connect_virtual_border_router" "vbr" { resource "null_resource" "destroy_warning" { triggers = { - warning = "WARNING: Destroy process is not complete yet. You need to delete the instance from Alibaba Console!" + warning = "WARNING: Destroy process is not complete yet. You need to delete the resource from Alibaba Portal!" } } diff --git a/examples/port-2-alibaba2-connection/terraform.tfvars.example b/examples/port-2-alibaba2-connection/terraform.tfvars.example index ea00a5f..3cb8dd6 100644 --- a/examples/port-2-alibaba2-connection/terraform.tfvars.example +++ b/examples/port-2-alibaba2-connection/terraform.tfvars.example @@ -8,7 +8,7 @@ notifications_emails = ["example@equinix.com"] bandwidth = 50 purchase_order_number = "1-323292" aside_port_name = "sit-tb1-dc-e5.tlab,10GSMF,A,001,201257, 21951980" -aside_vlan_tag = "2019" +aside_vlan_tag = 2019 zside_ap_type = "SP" zside_ap_authentication_key = "" zside_ap_profile_type = "L2_PROFILE" @@ -28,3 +28,8 @@ virtual_border_router_name = "Port_2_Alibaba_VBR" min_rx_interval = 1000 min_tx_interval = 1000 detect_multiplier = 10 +access_key = "" +secret_key = "" +project_id = "" +physical_connection_id = "" +vlan_id = 2019 From d1e746722d493e0dcff1065afd099d212dc13854 Mon Sep 17 00:00:00 2001 From: d-bhola Date: Thu, 14 Nov 2024 20:37:38 -0800 Subject: [PATCH 03/10] CXF-99867: Fix typo --- examples/port-2-alibaba2-connection/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/port-2-alibaba2-connection/README.md b/examples/port-2-alibaba2-connection/README.md index 1d35e08..6673fd0 100644 --- a/examples/port-2-alibaba2-connection/README.md +++ b/examples/port-2-alibaba2-connection/README.md @@ -1,12 +1,12 @@ # Fabric Port to Fabric Alibaba Profile Connection -Here is a guide with step-by-step instructions for creating a connection using the Equinix Terraform Provider and the Alibaba Terraform Provider. +This is a step-by-step guide for creating a connection using the Equinix Terraform Provider and the Alibaba Terraform Provider. By following these steps, you will be able to: 1. Setup a connection through Equinix Fabric. 2. Configure and accept the connection in the Alibaba Portal. 3. Manage resources effectively using Terraform. -4. Handle cleanup operations effciently +4. Perform cleanup operations efficiently ### Step by Step Instructions for Fabric Port to Fabric Alibaba Profile Connection From e2c6a1aff16a60d8cd9bdf5a6c1d4a2e5eb755cb Mon Sep 17 00:00:00 2001 From: d-bhola Date: Mon, 18 Nov 2024 09:52:09 -0800 Subject: [PATCH 04/10] CXF-99867: Address PR comments --- .../README.md | 61 ++++++++++++++++ .../main.tf | 60 ++++++++++++++++ .../outputs.tf | 21 ++++++ .../terraform.tfvars.example | 2 - .../variables.tf | 5 -- .../versions.tf | 0 examples/port-2-alibaba2-connection/README.md | 69 ------------------- examples/port-2-alibaba2-connection/main.tf | 65 ----------------- .../port-2-alibaba2-connection/outputs.tf | 26 ------- 9 files changed, 142 insertions(+), 167 deletions(-) create mode 100644 examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md create mode 100644 examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf create mode 100644 examples/port-2-alibaba-connection-with-alicloud-terraform-integration/outputs.tf rename examples/{port-2-alibaba2-connection => port-2-alibaba-connection-with-alicloud-terraform-integration}/terraform.tfvars.example (94%) rename examples/{port-2-alibaba2-connection => port-2-alibaba-connection-with-alicloud-terraform-integration}/variables.tf (97%) rename examples/{port-2-alibaba2-connection => port-2-alibaba-connection-with-alicloud-terraform-integration}/versions.tf (100%) delete mode 100644 examples/port-2-alibaba2-connection/README.md delete mode 100644 examples/port-2-alibaba2-connection/main.tf delete mode 100644 examples/port-2-alibaba2-connection/outputs.tf diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md new file mode 100644 index 0000000..aa9f2b3 --- /dev/null +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md @@ -0,0 +1,61 @@ +# Fabric Port to Fabric Alibaba Profile Connection + +This example shows how to leverage the [Fabric Port Connection Module](https://registry.terraform.io/modules/equinix/fabric/equinix/latest/submodules/port-connection) +to create a Fabric Connection from a Fabric Port to Fabric Alibaba Service Profile. + +It leverages the Equinix Terraform Provider, the Alibaba Terraform Provider, and the Fabric Port Connection +Module to setup the connection based on the parameters you have provided to this example; or based on the pattern +you see used in this example it will allow you to create a more specific use case for your own needs. + +See example usage below for details on how to use this example. +### Step by Step Instructions for Fabric Port to Fabric Alibaba Profile Connection + +#### 1. Create Connection from Equinix Terraform Provider + +**Note:** The `connection_name` must follow either one of these patterns: + +* A unique `connection_name` with atmost 24 characters. +`connection_name = var.connection_name` + + +* A `connection_name` with atmost 12 characters combined with a random string of 12 characters: + `connection_name = "${var.connection_name}${random_string.random.result}"`. + Use the `random_string` resource to perform this operation: + ```hcl + resource "random_string" "random" { + length = 12 + special = false + } + ``` + * A unique `connection_name` is generated by appending a 12-character random string to the variable name given by the user. + * A Fabric Port to Alibaba Profile Connection is successfully created and displayed in the Fabric Portal. + * An Express Connect Physical Connection resource is created and becomes visible in the Alibaba Portal. + + +#### 2. Formulate main.tf and output.tf Files +Use the following resources and data sources from the example (place them as comments initially): + +* `provider "alicloud"` +* `data "alicloud_express_connect_physical_connections" {}` +* `resource "alicloud_express_connect_virtual_border_router" {}` +* `resource "null_resource" {}` +* `output alicloud_express_connect_virtual_border_router {}` +* `output alicloud_express_connect_virtual_border_router_id {}` + +#### 3. Accept the Connection Request +Manually accept the connection request in the Alibaba Portal for the created physical connection. + +#### 4. Create the Virtual Border Router (VBR) Resource +* Remove the commented code to create the VBR resource +* The VBR resource is created successfully and linked to the physical connection. + +#### 5. [Cleanup] Delete Resources +1. Run `terraform destroy` to delete the Alibaba Virtual Border Router (VBR). +Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` + + +2. Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection. This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side. + + + + diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf new file mode 100644 index 0000000..6431147 --- /dev/null +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf @@ -0,0 +1,60 @@ +provider "equinix" { + client_id = var.equinix_client_id + client_secret = var.equinix_client_secret +} + +# provider "alicloud" { +# access_key = var.access_key +# secret_key = var.secret_key +# region = var.region +# } + +module "create_port_2_alibaba_connection" { + source = "../../modules/port-connection" + + connection_name = var.connection_name + connection_type = var.connection_type + notifications_type = var.notifications_type + notifications_emails = var.notifications_emails + bandwidth = var.bandwidth + purchase_order_number = var.purchase_order_number + project_id = var.project_id + + # A-side + aside_port_name = var.aside_port_name + aside_vlan_tag = var.aside_vlan_tag + + # Z-side + zside_ap_type = var.zside_ap_type + zside_ap_authentication_key = var.zside_ap_authentication_key + zside_ap_profile_type = var.zside_ap_profile_type + zside_location = var.zside_location + zside_seller_region = var.zside_seller_region + zside_sp_name = var.zside_sp_name +} +# +# data "alicloud_express_connect_physical_connections" "nameRegex" { +# name_regex = "^${module.create_port_2_alibaba_connection.primary_connection.name}" +# } +# +# resource "alicloud_express_connect_virtual_border_router" "vbr" { +# local_gateway_ip = var.local_gateway_ip +# peer_gateway_ip = var.peer_gateway_ip +# peering_subnet_mask = var.peering_subnet_mask +# physical_connection_id = data.alicloud_express_connect_physical_connections.nameRegex.connections[0].id +# virtual_border_router_name = var.virtual_border_router_name +# vlan_id = one(one(one(module.create_port_2_alibaba_connection.primary_connection.z_side).access_point).link_protocol).vlan_tag +# min_rx_interval = var.min_rx_interval +# min_tx_interval = var.min_tx_interval +# detect_multiplier = var.detect_multiplier +# } +# +# resource "null_resource" "destroy_warning" { +# triggers = { +# warning = "WARNING: Destroy process is not complete yet. You need to delete the resource from Alibaba Portal!" +# } +# } +# +# data "alicloud_express_connect_virtual_border_routers" "nameRegexVbr" { +# name_regex = "^${alicloud_express_connect_virtual_border_router.vbr.virtual_border_router_name}" +# } diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/outputs.tf b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/outputs.tf new file mode 100644 index 0000000..acd1cf2 --- /dev/null +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/outputs.tf @@ -0,0 +1,21 @@ +output "alibaba_connection" { + value = module.create_port_2_alibaba_connection.primary_connection + sensitive = true +} + +output "alibaba_connection_id" { + value = module.create_port_2_alibaba_connection.primary_connection_id +} + +# output "alicloud_express_connect_virtual_border_router" { +# value = alicloud_express_connect_virtual_border_router.vbr +# sensitive = true +# } +# +# output "alicloud_express_connect_virtual_border_router_id" { +# value = alicloud_express_connect_virtual_border_router.vbr.id +# } +# +# output "express_connect_virtual_border_router_id" { +# value = data.alicloud_express_connect_virtual_border_routers.nameRegexVbr.routers.0.id +# } diff --git a/examples/port-2-alibaba2-connection/terraform.tfvars.example b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/terraform.tfvars.example similarity index 94% rename from examples/port-2-alibaba2-connection/terraform.tfvars.example rename to examples/port-2-alibaba-connection-with-alicloud-terraform-integration/terraform.tfvars.example index 3cb8dd6..6debf8b 100644 --- a/examples/port-2-alibaba2-connection/terraform.tfvars.example +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/terraform.tfvars.example @@ -31,5 +31,3 @@ detect_multiplier = 10 access_key = "" secret_key = "" project_id = "" -physical_connection_id = "" -vlan_id = 2019 diff --git a/examples/port-2-alibaba2-connection/variables.tf b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/variables.tf similarity index 97% rename from examples/port-2-alibaba2-connection/variables.tf rename to examples/port-2-alibaba-connection-with-alicloud-terraform-integration/variables.tf index 9843a12..9113f8e 100644 --- a/examples/port-2-alibaba2-connection/variables.tf +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/variables.tf @@ -101,11 +101,6 @@ variable "peering_subnet_mask" { type = string default = "" } -variable "vlan_id" { - description = "Vlan ID" - type = string - default = "" -} variable "min_rx_interval" { description = "Minimum RX Interval" type = string diff --git a/examples/port-2-alibaba2-connection/versions.tf b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/versions.tf similarity index 100% rename from examples/port-2-alibaba2-connection/versions.tf rename to examples/port-2-alibaba-connection-with-alicloud-terraform-integration/versions.tf diff --git a/examples/port-2-alibaba2-connection/README.md b/examples/port-2-alibaba2-connection/README.md deleted file mode 100644 index 6673fd0..0000000 --- a/examples/port-2-alibaba2-connection/README.md +++ /dev/null @@ -1,69 +0,0 @@ -# Fabric Port to Fabric Alibaba Profile Connection - -This is a step-by-step guide for creating a connection using the Equinix Terraform Provider and the Alibaba Terraform Provider. -By following these steps, you will be able to: - -1. Setup a connection through Equinix Fabric. -2. Configure and accept the connection in the Alibaba Portal. -3. Manage resources effectively using Terraform. -4. Perform cleanup operations efficiently - -### Step by Step Instructions for Fabric Port to Fabric Alibaba Profile Connection - -#### 1. Create Connection from Equinix Terraform Provider - -This example shows how to leverage the [Fabric Port Connection Module](https://registry.terraform.io/modules/equinix/fabric/equinix/latest/submodules/port-connection) -to create a Fabric Connection from a Fabric Port to Fabric Alibaba Service Profile. - -It leverages the Equinix Terraform Provider, the Alibaba Terraform Provider, Fabric Port Connection -Module and various Alibaba resources to setup the connection based on the parameters you have provided to this example; or based on the pattern -you see used in this example it will allow you to create a more specific use case for your own needs. - -See the example usage (provided after the steps) for details on how to use this example. - -**Note:** The `connection_name` must follow either one of these patterns: - -* A unique `connection_name` with atmost 24 characters. -`connection_name = var.connection_name` - -* A `connection_name` with atmost 12 characters combined with a random string of 12 characters: - `connection_name = "${var.connection_name}${random_string.random.result}"` - -**Result of this step:** -* A unique `connection_name` is generated by appending a 12-character random string to the provided name. -* A Fabric Port to Alibaba Profile Connection is successfully created and displayed in the Fabric Portal. -* An Express Connect Physical Connection resource is created and becomes visible in the Alibaba Portal. - -#### 2. Formulate main.tf and output.tf Files -Use the following resources and data sources from the example (place them as comments initially): - -`data "alicloud_express_connect_physical_connections" {}` - -` resource "alicloud_express_connect_virtual_border_router" {}` - -`resource "null_resource" {}` - -`output alicloud_express_connect_virtual_border_router {}` - -`output alicloud_express_connect_virtual_border_router_id {}` - -#### 3. Accept the Connection Request -Manually accept the connection request in the Alibaba Portal for the created physical connection. - -#### 4. Create the Virtual Border Router (VBR) Resource -Remove the commented code to create the VBR resource - -**Result of this step:** -The VBR resource is created successfully and linked to the physical connection. - -#### 5. [Cleanup] Delete Resources -1. Delete the VBR using terraform -2. Terminate and delete the connection manually using the Alibaba Portal - -*Note:* If you attempt to delete the Fabric connection directly, you will encounter the following error: -`ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` - - - - - diff --git a/examples/port-2-alibaba2-connection/main.tf b/examples/port-2-alibaba2-connection/main.tf deleted file mode 100644 index 63bfe5e..0000000 --- a/examples/port-2-alibaba2-connection/main.tf +++ /dev/null @@ -1,65 +0,0 @@ -provider "equinix" { - client_id = var.equinix_client_id - client_secret = var.equinix_client_secret -} - -provider "alicloud" { - access_key = var.access_key - secret_key = var.secret_key - region = var.region -} - -resource "random_string" "random" { - length = 12 - special = false -} - -module "create_port_2_alibaba_connection" { - source = "../../modules/port-connection" - - connection_name = "${var.connection_name}${random_string.random.result}" - connection_type = var.connection_type - notifications_type = var.notifications_type - notifications_emails = var.notifications_emails - bandwidth = var.bandwidth - purchase_order_number = var.purchase_order_number - project_id = var.project_id - - # A-side - aside_port_name = var.aside_port_name - aside_vlan_tag = var.aside_vlan_tag - - # Z-side - zside_ap_type = var.zside_ap_type - zside_ap_authentication_key = var.zside_ap_authentication_key - zside_ap_profile_type = var.zside_ap_profile_type - zside_location = var.zside_location - zside_seller_region = var.zside_seller_region - zside_sp_name = var.zside_sp_name -} - -data "alicloud_express_connect_physical_connections" "nameRegex" { - name_regex = "^${module.create_port_2_alibaba_connection.primary_connection.name}" -} - -resource "alicloud_express_connect_virtual_border_router" "vbr" { - local_gateway_ip = var.local_gateway_ip - peer_gateway_ip = var.peer_gateway_ip - peering_subnet_mask = var.peering_subnet_mask - physical_connection_id = data.alicloud_express_connect_physical_connections.nameRegex.connections[0].id - virtual_border_router_name = var.virtual_border_router_name - vlan_id = one(one(one(module.create_port_2_alibaba_connection.primary_connection.z_side).access_point).link_protocol).vlan_tag - min_rx_interval = var.min_rx_interval - min_tx_interval = var.min_tx_interval - detect_multiplier = var.detect_multiplier -} - -resource "null_resource" "destroy_warning" { - triggers = { - warning = "WARNING: Destroy process is not complete yet. You need to delete the resource from Alibaba Portal!" - } -} - -data "alicloud_express_connect_virtual_border_routers" "nameRegexVbr" { - name_regex = "^${alicloud_express_connect_virtual_border_router.vbr.virtual_border_router_name}" -} diff --git a/examples/port-2-alibaba2-connection/outputs.tf b/examples/port-2-alibaba2-connection/outputs.tf deleted file mode 100644 index 361f3f2..0000000 --- a/examples/port-2-alibaba2-connection/outputs.tf +++ /dev/null @@ -1,26 +0,0 @@ -output "alibaba_connection" { - value = module.create_port_2_alibaba_connection.primary_connection - sensitive = true -} - -output "alibaba_connection_id" { - value = module.create_port_2_alibaba_connection.primary_connection_id -} - -output "connection_name" { - value = var.connection_name - description = "The connection name used for this port connection" -} - -output "alicloud_express_connect_virtual_border_router" { - value = alicloud_express_connect_virtual_border_router.vbr - sensitive = true -} - -output "alicloud_express_connect_virtual_border_router_id" { - value = alicloud_express_connect_virtual_border_router.vbr.id -} - -output "express_connect_virtual_border_router_id" { - value = data.alicloud_express_connect_virtual_border_routers.nameRegexVbr.routers.0.id -} From d34ba3f17b2925ffc9ede1b42fc5eb38d30f4e7a Mon Sep 17 00:00:00 2001 From: d-bhola Date: Mon, 18 Nov 2024 10:00:45 -0800 Subject: [PATCH 05/10] CXF-99867: Update README.md --- .../README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md index aa9f2b3..afb83b5 100644 --- a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md @@ -33,14 +33,8 @@ See example usage below for details on how to use this example. #### 2. Formulate main.tf and output.tf Files -Use the following resources and data sources from the example (place them as comments initially): - -* `provider "alicloud"` -* `data "alicloud_express_connect_physical_connections" {}` -* `resource "alicloud_express_connect_virtual_border_router" {}` -* `resource "null_resource" {}` -* `output alicloud_express_connect_virtual_border_router {}` -* `output alicloud_express_connect_virtual_border_router_id {}` +* The resources and data sources (from the example) are in comments when you run the initial `terraform apply`. +* The comments can be removed after you accept the connection with the Alibaba portal. #### 3. Accept the Connection Request Manually accept the connection request in the Alibaba Portal for the created physical connection. From d3c31aac2cd35d19a78c8bf7a2c2f521cea4251c Mon Sep 17 00:00:00 2001 From: d-bhola Date: Mon, 18 Nov 2024 10:14:46 -0800 Subject: [PATCH 06/10] CXF-99867: Update step 2 in README.md --- .../README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md index afb83b5..04bf86b 100644 --- a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md @@ -19,7 +19,7 @@ See example usage below for details on how to use this example. * A `connection_name` with atmost 12 characters combined with a random string of 12 characters: - `connection_name = "${var.connection_name}${random_string.random.result}"`. + `connection_name = "${var.connection_name}${random_string.random.result}"` Use the `random_string` resource to perform this operation: ```hcl resource "random_string" "random" { @@ -33,7 +33,7 @@ See example usage below for details on how to use this example. #### 2. Formulate main.tf and output.tf Files -* The resources and data sources (from the example) are in comments when you run the initial `terraform apply`. +* When you run the initial `terraform apply`, the resources and data sources (from the example) are in comments * The comments can be removed after you accept the connection with the Alibaba portal. #### 3. Accept the Connection Request @@ -44,7 +44,7 @@ Manually accept the connection request in the Alibaba Portal for the created phy * The VBR resource is created successfully and linked to the physical connection. #### 5. [Cleanup] Delete Resources -1. Run `terraform destroy` to delete the Alibaba Virtual Border Router (VBR). +1. Run `terraform destroy` to delete the Alibaba VBR Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` From 0b7c2218732f2cb0fef0aa9466afe9f4d8f40366 Mon Sep 17 00:00:00 2001 From: d-bhola Date: Mon, 18 Nov 2024 13:25:31 -0800 Subject: [PATCH 07/10] CXF-99867: Address PR comments --- .../README.md | 19 +++++++------------ .../main.tf | 12 ++++++------ 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md index 04bf86b..bcd13f6 100644 --- a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md @@ -15,9 +15,7 @@ See example usage below for details on how to use this example. **Note:** The `connection_name` must follow either one of these patterns: * A unique `connection_name` with atmost 24 characters. -`connection_name = var.connection_name` - - +`connection_name = var.connection_name` * A `connection_name` with atmost 12 characters combined with a random string of 12 characters: `connection_name = "${var.connection_name}${random_string.random.result}"` Use the `random_string` resource to perform this operation: @@ -30,25 +28,22 @@ See example usage below for details on how to use this example. * A unique `connection_name` is generated by appending a 12-character random string to the variable name given by the user. * A Fabric Port to Alibaba Profile Connection is successfully created and displayed in the Fabric Portal. * An Express Connect Physical Connection resource is created and becomes visible in the Alibaba Portal. - #### 2. Formulate main.tf and output.tf Files -* When you run the initial `terraform apply`, the resources and data sources (from the example) are in comments +* When you run the initial `terraform apply`, the resources and data sources (from the example) are in comments. * The comments can be removed after you accept the connection with the Alibaba portal. #### 3. Accept the Connection Request -Manually accept the connection request in the Alibaba Portal for the created physical connection. +* Manually accept the connection request in the Alibaba Portal for the created physical connection. #### 4. Create the Virtual Border Router (VBR) Resource -* Remove the commented code to create the VBR resource +* Remove the commented code to create the VBR resource. * The VBR resource is created successfully and linked to the physical connection. -#### 5. [Cleanup] Delete Resources -1. Run `terraform destroy` to delete the Alibaba VBR +#### 5. Delete Resources +* Run `terraform destroy` to delete the Alibaba VBR. Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` - - -2. Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection. This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side. +* Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection. This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side. diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf index 6431147..1d50c29 100644 --- a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/main.tf @@ -3,12 +3,6 @@ provider "equinix" { client_secret = var.equinix_client_secret } -# provider "alicloud" { -# access_key = var.access_key -# secret_key = var.secret_key -# region = var.region -# } - module "create_port_2_alibaba_connection" { source = "../../modules/port-connection" @@ -32,6 +26,12 @@ module "create_port_2_alibaba_connection" { zside_seller_region = var.zside_seller_region zside_sp_name = var.zside_sp_name } + +# provider "alicloud" { +# access_key = var.access_key +# secret_key = var.secret_key +# region = var.region +# } # # data "alicloud_express_connect_physical_connections" "nameRegex" { # name_regex = "^${module.create_port_2_alibaba_connection.primary_connection.name}" From ed444b4eb4f5a3f6f07ac917e620759962c058c0 Mon Sep 17 00:00:00 2001 From: d-bhola Date: Mon, 18 Nov 2024 14:04:01 -0800 Subject: [PATCH 08/10] CXF-99867: Address PR comments --- .../README.md | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md index bcd13f6..10ea33b 100644 --- a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md @@ -14,7 +14,7 @@ See example usage below for details on how to use this example. **Note:** The `connection_name` must follow either one of these patterns: -* A unique `connection_name` with atmost 24 characters. +* A unique `connection_name` with atmost 24 characters `connection_name = var.connection_name` * A `connection_name` with atmost 12 characters combined with a random string of 12 characters: `connection_name = "${var.connection_name}${random_string.random.result}"` @@ -25,25 +25,27 @@ See example usage below for details on how to use this example. special = false } ``` - * A unique `connection_name` is generated by appending a 12-character random string to the variable name given by the user. - * A Fabric Port to Alibaba Profile Connection is successfully created and displayed in the Fabric Portal. - * An Express Connect Physical Connection resource is created and becomes visible in the Alibaba Portal. + * A unique `connection_name` is generated by appending a 12-character random string to the variable name given by the user + * A Fabric Port to Alibaba Profile Connection is successfully created and displayed in the Fabric Portal + * An Express Connect Physical Connection resource is created and becomes visible in the Alibaba Portal #### 2. Formulate main.tf and output.tf Files -* When you run the initial `terraform apply`, the resources and data sources (from the example) are in comments. -* The comments can be removed after you accept the connection with the Alibaba portal. +* When you run the initial `terraform apply`, the resources and data sources (from the example) are in comments +* The comments can be removed after you accept the connection with the Alibaba portal #### 3. Accept the Connection Request -* Manually accept the connection request in the Alibaba Portal for the created physical connection. +* Manually accept the connection request in the Alibaba Portal for the created physical connection #### 4. Create the Virtual Border Router (VBR) Resource -* Remove the commented code to create the VBR resource. -* The VBR resource is created successfully and linked to the physical connection. +* Remove the commented code to create the VBR resource +* Run `terraform init` to initialize and `terraform apply` to deploy the configuration +* The VBR resource is created successfully and linked to the physical connection #### 5. Delete Resources -* Run `terraform destroy` to delete the Alibaba VBR. -Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal.` -* Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection. This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side. +* Run `terraform destroy` to delete the Alibaba VBR +* Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal` +* Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection +* This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side From d31fcbc4d8f05a8ac2ac7753cc3ad4399222b2f4 Mon Sep 17 00:00:00 2001 From: d-bhola Date: Mon, 18 Nov 2024 14:10:15 -0800 Subject: [PATCH 09/10] CXF-99867: Address PR comments --- .../README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md index 10ea33b..2225fb7 100644 --- a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md @@ -42,10 +42,8 @@ See example usage below for details on how to use this example. * The VBR resource is created successfully and linked to the physical connection #### 5. Delete Resources -* Run `terraform destroy` to delete the Alibaba VBR -* Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal` -* Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection -* This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side +* Run `terraform destroy` to delete the Alibaba VBR. Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal` +* Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection. This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side From ec5ce647bcea62f865c07f1f37f6fbcd2e8ed66b Mon Sep 17 00:00:00 2001 From: d-bhola Date: Mon, 18 Nov 2024 14:24:48 -0800 Subject: [PATCH 10/10] CXF-99867: Add bullets to the deletion step --- .../README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md index 2225fb7..3248491 100644 --- a/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md +++ b/examples/port-2-alibaba-connection-with-alicloud-terraform-integration/README.md @@ -42,8 +42,10 @@ See example usage below for details on how to use this example. * The VBR resource is created successfully and linked to the physical connection #### 5. Delete Resources -* Run `terraform destroy` to delete the Alibaba VBR. Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal` -* Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection. This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side +* Run `terraform destroy` to delete the Alibaba VBR +* Directly deleting the Equinix Fabric connection, will result in the following error: `ERR-UAA-003-00: Deletion for a provisioned connection needs to be initiated from Alibaba Portal` +* Go to the Alibaba Portal to manually **terminate** and then **delete** the physical connection +* This action will automatically delete the connection on the Equinix side, updating its status to Deprovisioned on both Equinix and Provider side