Skip to content

Commit

Permalink
add suport for 'allow', 'block' and 'captcha' actions (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-koehler authored Jul 18, 2023
1 parent 9d75cc2 commit 435a087
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,18 @@ resource "aws_wafv2_web_acl" "main" {
for_each = lookup(action_to_use.value, "count", null) == null ? [] : [lookup(action_to_use.value, "count")]
content {}
}
dynamic "allow" {
for_each = lookup(action_to_use.value, "allow", null) == null ? [] : [lookup(action_to_use.value, "allow")]
content {}
}
dynamic "block" {
for_each = lookup(action_to_use.value, "block", null) == null ? [] : [lookup(action_to_use.value, "block")]
content {}
}
dynamic "captcha" {
for_each = lookup(action_to_use.value, "captcha", null) == null ? [] : [lookup(action_to_use.value, "captcha")]
content {}
}
}
}
}
Expand Down

0 comments on commit 435a087

Please sign in to comment.