Eval rule

akamai_appsec_eval_rule

Creates or modifies an evaluation rule's action, conditions, and exceptions.
Evaluation rules are Kona Rule Set rules used when running a security configuration in evaluation mode.

Changes to these rules do not affect the rules used on your production network.

resource "akamai_appsec_eval_rule" "my_eval_rule" {
  config_id           = 12345
  security_policy_id  = "abcd_123456"
  rule_id             = 12345
  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_idUnique identifier of the evaluation rule being modified.
rule_action✔️Action to be taken any time the evaluation rule is triggered. Possible values are:
  • alert. Records information about the request.
  • deny. Blocks the request.
  • deny. Takes your custom action against the request.
  • none. No action taken.
condition_exceptionPath to a JSON file containing the conditions and exceptions to be applied to the evaluation rule.