Skip to content

Commit

Permalink
Fix: fixing Vd-2-Azure example script (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
srushti-patl authored Feb 20, 2024
1 parent d1d5b70 commit 966f0a5
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions examples/virtual-device-2-azure-connection/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 966f0a5

Please sign in to comment.