Rule

akamai_appsec_rule

🚧

Deprecated

Hello. Just a note to let you know this resource is deprecated with a scheduled end-of-life in v10.4 of our provider.

This resource's narrow scope, management of only one rule or group, causes rate-limiting issues when you've got multiples. To mitigate that, we're replacing this resource with a new one that lets you manage all of your policy's rules and groups at once, WAF rule set.

See Attack group migration for more information on improvements and argument mapping.

Modifies a Kona Rule Set rule's action, conditions, and exceptions.

resource "akamai_appsec_rule" "my_rule" {
  config_id           = 12345
  security_policy_id  = "abcd_1234567"
  rule_id             = 7654321
  rule_action         = "deny"
  condition_exception = file("${path.module}/condition_exception.json")
}

Arguments

ArgumentRequiredDescription
config_id✔️A security configuration ID.
security_policy_id✔️A security policy ID.
rule_id✔️Unique identifier of the rule being modified.
rule_action✔️The action taken when a rule is triggered. If your policy is in ASE_AUTO mode, use condition_exception instead. Possible values are:
  • alert. Records the event.
  • deny. Blocks the event.
  • deny. Takes your custom action against the event.
  • none. No action taken.
condition_exceptionPath to a JSON file containing a description of the conditions and exceptions to be associated with a rule.