Skip to content

Commit 4bc0673

Browse files
mitrilmadapeabodyimrannayer
authored
feat: Support external_resources for egress policies (#162)
Co-authored-by: Andrew Peabody <[email protected]> Co-authored-by: Imran Nayer <[email protected]>
1 parent 39d51ae commit 4bc0673

File tree

1 file changed

+2
-1
lines changed
  • modules/regular_service_perimeter

1 file changed

+2
-1
lines changed

modules/regular_service_perimeter/main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ resource "google_access_context_manager_service_perimeter" "regular_service_peri
8787
source_restriction = egress_policies.value["from"]["sources"] != null ? "SOURCE_RESTRICTION_ENABLED" : null
8888
}
8989
egress_to {
90-
resources = lookup(egress_policies.value["to"], "resources", ["*"])
90+
resources = lookup(egress_policies.value["to"], "resources", ["*"])
91+
external_resources = lookup(egress_policies.value["to"], "external_resources", [])
9192
dynamic "operations" {
9293
for_each = lookup(egress_policies.value["to"], "operations", [])
9394
content {

0 commit comments

Comments
 (0)