We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b1f958 commit ac824e1Copy full SHA for ac824e1
modules/okenetwork/datasources.tf
@@ -20,4 +20,5 @@ data "oci_core_subnets" "oke_subnets" {
20
}
21
22
data "oci_waas_edge_subnets" "waf_cidr_blocks" {
23
+ count = var.waf_enabled ? 1 : 0
24
modules/okenetwork/security.tf
@@ -258,7 +258,7 @@ resource "oci_core_security_list" "pub_lb_seclist" {
258
# allow only from WAF
259
dynamic "ingress_security_rules" {
260
iterator = waf_iterator
261
- for_each = var.waf_enabled == true ? data.oci_waas_edge_subnets.waf_cidr_blocks.edge_subnets : []
+ for_each = var.waf_enabled == true ? data.oci_waas_edge_subnets.waf_cidr_blocks[0].edge_subnets : []
262
263
content {
264
description = "allow public ingress only from WAF CIDR blocks"
0 commit comments