WAF rule set
akamai_appsec_waf_ruleset
Create and update Web Application Firewall (WAF) rules.
resource "akamai_appsec_waf_ruleset" "my_ruleset" {
config_id = 12345
security_policy_id = "abcd_123456"
rules = [
{
rule_id = 950002
rule_action = "alert"
condition_exception = jsonencode({
advancedExceptions = {
conditionOperator = "AND"
conditions = [
{
type = "pathMatch"
paths = ["/test*"]
positiveMatch = true
}
]
}
})
}
],
attack_groups = [
{
attack_group = "WAT",
attack_group_action = "alert"
condition_exception = jsonencode({
advancedExceptions = {
conditions = [
{
type = "pathMatch"
paths = ["/testbank*"]
positiveMatch = true
},
{
type = "pathMatch"
paths = ["/testconfig*"]
positiveMatch = false
}
]
}
})
}
]
}Arguments
Pass a security configuration and security policy ID to create a default ruleset or customize the set by adding rules and attack groups.
| Argument | Required | Description |
|---|---|---|
config_id |
✔️ | Your security configuration's ID. |
security_policy_id |
✔️ | Your security policy's ID. |
attack_groups |
Your attack group configuration. Contains:
|
|
rules |
List of rule objects including action and condition exceptions. Contains:
|
Attributes
Returned to you are your rule settings.
Note: Your state file doesn't include or reflect rules or groups that have an action of
none.
| Attribute | Description |
|---|---|
config_id |
Your security configuration's ID. |
security_policy_id |
Your security policy's ID. |
attack_groups |
Your attack group configuration. Contains:
|
rules |
List of rule objects including action and condition exceptions. Contains:
|
Updated 16 days ago
Did this page help you?
