Skip to content

Commit

Permalink
support external_resources for egress polcies
Browse files Browse the repository at this point in the history
  • Loading branch information
mitrilmad committed Sep 2, 2024
1 parent ba5b331 commit 1ae56f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/regular_service_perimeter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 1ae56f3

Please sign in to comment.