cloudposse / terraform-aws-waf

https://cloudposse.com/accelerate
Apache License 2.0
40 stars 57 forks source link

geo_allowlist_statement_rules should allow the "count" action in addition to "block" #58

Closed queue-tip closed 7 months ago

queue-tip commented 9 months ago

Describe the Feature

Currently geo_allowlist_statement_rules have a default action of block. Instead of setting a default, the user should be able to choose between block and count.

Expected Behavior

The objects in the geo_allowlist_statement_rules list allow a parameter named action with either block or count as valid values.

Use Case

It would be useful in a count-before-block configuration in order to collect metrics on geo blocking rules.

Describe Ideal Solution

I'd like an implementation similar to how other rule lists in the module allow specifying the action.

Alternatives Considered

No response

Additional Context

No response