From 937a13dff16cca3bc6a772a9f75c12aa9cc2513c Mon Sep 17 00:00:00 2001 From: "Michi U." <4169888+michemache@users.noreply.github.com> Date: Mon, 28 Jul 2025 10:19:48 +0200 Subject: [PATCH] fix spelling definition --- modules/rule-group/README.md | 2 +- modules/rule-group/variables.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/rule-group/README.md b/modules/rule-group/README.md index 1a25791..c1124ab 100644 --- a/modules/rule-group/README.md +++ b/modules/rule-group/README.md @@ -149,7 +149,7 @@ No modules. | [resource\_policy](#input\_resource\_policy) | The policy JSON to use for the resource policy; required when `create_resource_policy` is `false` | `string` | `""` | no | | [resource\_policy\_actions](#input\_resource\_policy\_actions) | A list of IAM actions allowed in the resource policy | `list(string)` | `[]` | no | | [resource\_policy\_principals](#input\_resource\_policy\_principals) | A list of IAM principals allowed in the resource policy | `list(string)` | `[]` | no | -| [rule\_group](#input\_rule\_group) | A configuration block that defines the rule group rules. Required unless `rules` is specified |
object({
reference_sets = optional(object({
ip_set_references = optional(map(object({
reference_arn = string
})))
key = string
}))
rules_source = optional(object({
rules_source_list = optional(object({
generated_rules_type = string
target_types = list(string)
targets = list(string)
}))
rules_string = optional(string)
stateful_rule = optional(list(object({
action = string
header = object({
destination = string
destination_port = string
direction = string
protocol = string
source = string
source_port = string
})
rule_option = list(object({
keyword = string
settings = optional(list(string))
}))
})))
stateless_rules_and_custom_actions = optional(object({
custom_action = optional(list(object({
action_definition = object({
publish_metric_action = object({
dimension = list(object({
value = string
}))
})
})
action_name = string
})))
stateless_rule = list(object({
priority = number
rule_definition = object({
actions = list(string)
match_attributes = object({
destination = optional(list(object({
address_definition = string
})))
destination_port = optional(list(object({
from_port = string
to_port = optional(string)
})))
protocols = optional(list(string))
source = optional(list(object({
address_definition = string
})))
source_port = optional(list(object({
from_port = string
to_port = optional(string)
})))
tcp_flag = optional(list(object({
flags = list(string)
masks = optional(list(string))
})))
})
})
rule_options = optional(list(object({
keyword = string
settings = optional(list(string))
})))
}))
}))
}))
rule_variables = optional(object({
ip_sets = optional(list(object({
key = string
ip_set = object({
defintion = list(string)
})
})))
port_sets = optional(list(object({
key = string
port_set = object({
definition = list(string)
})
})))
}))
stateful_rule_options = optional(object({
rule_order = optional(string)
}))
}) | `null` | no |
+| [rule\_group](#input\_rule\_group) | A configuration block that defines the rule group rules. Required unless `rules` is specified | object({
reference_sets = optional(object({
ip_set_references = optional(map(object({
reference_arn = string
})))
key = string
}))
rules_source = optional(object({
rules_source_list = optional(object({
generated_rules_type = string
target_types = list(string)
targets = list(string)
}))
rules_string = optional(string)
stateful_rule = optional(list(object({
action = string
header = object({
destination = string
destination_port = string
direction = string
protocol = string
source = string
source_port = string
})
rule_option = list(object({
keyword = string
settings = optional(list(string))
}))
})))
stateless_rules_and_custom_actions = optional(object({
custom_action = optional(list(object({
action_definition = object({
publish_metric_action = object({
dimension = list(object({
value = string
}))
})
})
action_name = string
})))
stateless_rule = list(object({
priority = number
rule_definition = object({
actions = list(string)
match_attributes = object({
destination = optional(list(object({
address_definition = string
})))
destination_port = optional(list(object({
from_port = string
to_port = optional(string)
})))
protocols = optional(list(string))
source = optional(list(object({
address_definition = string
})))
source_port = optional(list(object({
from_port = string
to_port = optional(string)
})))
tcp_flag = optional(list(object({
flags = list(string)
masks = optional(list(string))
})))
})
})
rule_options = optional(list(object({
keyword = string
settings = optional(list(string))
})))
}))
}))
}))
rule_variables = optional(object({
ip_sets = optional(list(object({
key = string
ip_set = object({
definition = list(string)
})
})))
port_sets = optional(list(object({
key = string
port_set = object({
definition = list(string)
})
})))
}))
stateful_rule_options = optional(object({
rule_order = optional(string)
}))
}) | `null` | no |
| [rules](#input\_rules) | The stateful rule group rules specifications in Suricata file format, with one rule per line. Use this to import your existing Suricata compatible rule groups. Required unless `rule_group` is specified | `string` | `null` | no |
| [tags](#input\_tags) | A map of tags to add to all resources | `map(string)` | `{}` | no |
| [type](#input\_type) | Whether the rule group is stateless (containing stateless rules) or stateful (containing stateful rules). Valid values include: `STATEFUL` or `STATELESS` | `string` | `"STATELESS"` | no |
diff --git a/modules/rule-group/variables.tf b/modules/rule-group/variables.tf
index fa81acc..22bf871 100644
--- a/modules/rule-group/variables.tf
+++ b/modules/rule-group/variables.tf
@@ -126,7 +126,7 @@ variable "rule_group" {
ip_sets = optional(list(object({
key = string
ip_set = object({
- defintion = list(string)
+ definition = list(string)
})
})))
port_sets = optional(list(object({