You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"aws_networkfirewall_firewall_policy" {
source="./modules/aws/r/aws_networkfirewall_firewall_policy"# description - (optional) is a type of stringdescription=null# name - (required) is a type of stringname=null# tags - (optional) is a type of map of stringtags={}
firewall_policy=[{
stateful_rule_group_reference = [{
resource_arn =null
}]
stateless_custom_action = [{
action_definition = [{
publish_metric_action = [{
dimension = [{
value =null
}]
}]
}]
action_name =null
}]
stateless_default_actions = []
stateless_fragment_default_actions = []
stateless_rule_group_reference = [{
priority =null
resource_arn =null
}]
}]
}
resource"aws_networkfirewall_firewall_policy""this" {
# description - (optional) is a type of stringdescription=var.description# name - (required) is a type of stringname=var.name# tags - (optional) is a type of map of stringtags=var.tagsdynamic"firewall_policy" {
for_each=var.firewall_policycontent {
# stateless_default_actions - (required) is a type of set of stringstateless_default_actions=firewall_policy.value["stateless_default_actions"]
# stateless_fragment_default_actions - (required) is a type of set of stringstateless_fragment_default_actions=firewall_policy.value["stateless_fragment_default_actions"]
dynamic"stateful_rule_group_reference" {
for_each=firewall_policy.value.stateful_rule_group_referencecontent {
# resource_arn - (required) is a type of stringresource_arn=stateful_rule_group_reference.value["resource_arn"]
}
}
dynamic"stateless_custom_action" {
for_each=firewall_policy.value.stateless_custom_actioncontent {
# action_name - (required) is a type of stringaction_name=stateless_custom_action.value["action_name"]
dynamic"action_definition" {
for_each=stateless_custom_action.value.action_definitioncontent {
dynamic"publish_metric_action" {
for_each=action_definition.value.publish_metric_actioncontent {
dynamic"dimension" {
for_each=publish_metric_action.value.dimensioncontent {
# value - (required) is a type of stringvalue=dimension.value["value"]
}
}
}
}
}
}
}
}
dynamic"stateless_rule_group_reference" {
for_each=firewall_policy.value.stateless_rule_group_referencecontent {
# priority - (required) is a type of numberpriority=stateless_rule_group_reference.value["priority"]
# resource_arn - (required) is a type of stringresource_arn=stateless_rule_group_reference.value["resource_arn"]
}
}
}
}
}