From 966f0a55d77f640f98a8922292030a12784814ce Mon Sep 17 00:00:00 2001 From: Srushti Patel <137830748+srushti-patl@users.noreply.github.com> Date: Tue, 20 Feb 2024 14:08:43 -0800 Subject: [PATCH] Fix: fixing Vd-2-Azure example script (#35) --- .../virtual-device-2-azure-connection/main.tf | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/examples/virtual-device-2-azure-connection/main.tf b/examples/virtual-device-2-azure-connection/main.tf index 116dd26f..3420cce1 100644 --- a/examples/virtual-device-2-azure-connection/main.tf +++ b/examples/virtual-device-2-azure-connection/main.tf @@ -46,20 +46,15 @@ resource "equinix_network_device" "C8KV-SV" { acl_template_id = equinix_network_acl_template.wan-acl-template.id } -resource "equinix_network_ssh_key" "suneeth-ssh" { - name = var.network_public_key_name - public_key = var.network_public_key -} - #Azure Provider -resource "azurerm_resource_group" "port2azure" { +resource "azurerm_resource_group" "vd2azure" { name = var.azure_resource_name location = var.azure_location } -resource "azurerm_express_route_circuit" "port2azure" { +resource "azurerm_express_route_circuit" "vd2azure" { name = var.azure_service_key_name - resource_group_name = azurerm_resource_group.port2azure.name - location = azurerm_resource_group.port2azure.location + resource_group_name = azurerm_resource_group.vd2azure.name + location = azurerm_resource_group.vd2azure.location service_provider_name = var.azure_service_provider_name peering_location = var.azure_peering_location bandwidth_in_mbps = var.bandwidth @@ -81,7 +76,7 @@ module "create_virtual_device_2_azure_connection" { connection_type = var.connection_type notifications_type = var.notifications_type notifications_emails = var.notifications_emails - bandwidth = azurerm_express_route_circuit.port2azure.bandwidth_in_mbps + bandwidth = azurerm_express_route_circuit.vd2azure.bandwidth_in_mbps purchase_order_number = var.purchase_order_number # A-side @@ -91,7 +86,7 @@ module "create_virtual_device_2_azure_connection" { # Z-side zside_ap_type = var.zside_ap_type zside_peering_type = var.zside_peering_type - zside_ap_authentication_key = azurerm_express_route_circuit.port2azure.service_key + zside_ap_authentication_key = azurerm_express_route_circuit.vd2azure.service_key zside_ap_profile_type = var.zside_ap_profile_type zside_location = var.zside_location zside_sp_name = var.zside_sp_name