File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/regular_service_perimeter Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ resource "google_access_context_manager_service_perimeter" "regular_service_peri
54
54
ingress_to {
55
55
resources = lookup (ingress_policies. value [" to" ], " resources" , [" *" ])
56
56
dynamic "operations" {
57
- for_each = ingress_policies. value [" to" ][ " operations" ]
57
+ for_each = lookup ( ingress_policies. value [" to" ], " operations" , [])
58
58
content {
59
59
service_name = operations. key
60
60
dynamic "method_selectors" {
@@ -149,7 +149,7 @@ resource "google_access_context_manager_service_perimeter" "regular_service_peri
149
149
ingress_to {
150
150
resources = lookup (ingress_policies_dry_run. value [" to" ], " resources" , [" *" ])
151
151
dynamic "operations" {
152
- for_each = ingress_policies_dry_run. value [" to" ][ " operations" ]
152
+ for_each = lookup ( ingress_policies_dry_run. value [" to" ], " operations" , [])
153
153
content {
154
154
service_name = operations. key
155
155
dynamic "method_selectors" {
You can’t perform that action at this time.
0 commit comments