Skip to content

Commit

Permalink
feat: Support external_resources for egress policies (#162)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Peabody <[email protected]>
Co-authored-by: Imran Nayer <[email protected]>
  • Loading branch information
3 people authored Oct 8, 2024
1 parent 39d51ae commit 4bc0673
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 4bc0673

Please sign in to comment.