Skip to content

Commit

Permalink
Fix rate limit bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Wesley Kirkland authored and Abdul Wahid committed Jan 25, 2023
1 parent f134a04 commit b6cb1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ resource "aws_wafv2_web_acl" "main" {
aggregate_key_type = lookup(rate_based_statement.value, "aggregate_key_type", "IP")

dynamic "forwarded_ip_config" {
for_each = length(lookup(rate_based_statement.value, "forwarded_ip_config", {})) == 0 ? [] : [lookup(rule.value, "forwarded_ip_config", {})]
for_each = length(lookup(rate_based_statement.value, "forwarded_ip_config", {})) == 0 ? [] : [lookup(rate_based_statement.value, "forwarded_ip_config", {})]
content {
fallback_behavior = lookup(forwarded_ip_config.value, "fallback_behavior")
header_name = lookup(forwarded_ip_config.value, "header_name")
Expand Down

0 comments on commit b6cb1bd

Please sign in to comment.