From 4bc0673294abb72682e70743f2704df3a153bf18 Mon Sep 17 00:00:00 2001 From: matthew han Date: Wed, 9 Oct 2024 06:42:40 +0900 Subject: [PATCH] feat: Support external_resources for egress policies (#162) Co-authored-by: Andrew Peabody Co-authored-by: Imran Nayer --- modules/regular_service_perimeter/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/regular_service_perimeter/main.tf b/modules/regular_service_perimeter/main.tf index bd2b6b6..2a4b011 100644 --- a/modules/regular_service_perimeter/main.tf +++ b/modules/regular_service_perimeter/main.tf @@ -87,7 +87,8 @@ resource "google_access_context_manager_service_perimeter" "regular_service_peri source_restriction = egress_policies.value["from"]["sources"] != null ? "SOURCE_RESTRICTION_ENABLED" : null } egress_to { - resources = lookup(egress_policies.value["to"], "resources", ["*"]) + resources = lookup(egress_policies.value["to"], "resources", ["*"]) + external_resources = lookup(egress_policies.value["to"], "external_resources", []) dynamic "operations" { for_each = lookup(egress_policies.value["to"], "operations", []) content {