From 4f37b33e9bb0e3919e595f07d0fa6800ed99def0 Mon Sep 17 00:00:00 2001 From: Stephen Bancroft Date: Wed, 27 Mar 2024 10:34:11 +1100 Subject: [PATCH] Added optional args to google_vmwareengine_network_peering --- modules/gcve-network-peering/main.tf | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/modules/gcve-network-peering/main.tf b/modules/gcve-network-peering/main.tf index ff8ca09..09125a3 100644 --- a/modules/gcve-network-peering/main.tf +++ b/modules/gcve-network-peering/main.tf @@ -67,11 +67,15 @@ resource "google_vmwareengine_network_peering" "peering" { } resource "google_vmwareengine_network_peering" "vmw-engine-network-peering" { - count = var.create_remote_peer == true ? 1 : 0 - project = var.peer_nw_project_id - name = var.gcve_peer_name - description = var.gcve_peer_description - peer_network = local.peer_network - peer_network_type = "STANDARD" - vmware_engine_network = var.vmware_engine_network_id + count = var.create_remote_peer == true ? 1 : 0 + name = var.gcve_peer_name + description = var.gcve_peer_description + project = var.peer_nw_project_id + vmware_engine_network = var.vmware_engine_network_id + peer_network = local.peer_network + peer_network_type = "STANDARD" + export_custom_routes = var.peer_export_custom_routes + import_custom_routes = var.peer_import_custom_routes + export_custom_routes_with_public_ip = var.peer_export_custom_routes_with_public_ip + import_custom_routes_with_public_ip = var.peer_import_custom_routes_with_public_ip } \ No newline at end of file