Skip to content

Commit

Permalink
add version for ZBFW and IPS definition in security policy (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrahimm authored Oct 31, 2024
1 parent a66338f commit d64c03c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sdwan_security_policies.tf
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@ resource "sdwan_security_policy" "security_policy" {
definitions = flatten([
try(each.value.firewall_policies, null) == null ? [] :
[for fp in each.value.firewall_policies : {
type = "zoneBasedFW"
id = sdwan_zone_based_firewall_policy_definition.zone_based_firewall_policy_definition[fp].id
type = "zoneBasedFW"
id = sdwan_zone_based_firewall_policy_definition.zone_based_firewall_policy_definition[fp].id
version = sdwan_zone_based_firewall_policy_definition.zone_based_firewall_policy_definition[fp].version
}],
try(each.value.intrusion_prevention_policy, null) == null ? [] : [{
type = "intrusionPrevention"
id = sdwan_intrusion_prevention_policy_definition.intrusion_prevention_policy_definition[each.value.intrusion_prevention_policy].id
type = "intrusionPrevention"
id = sdwan_intrusion_prevention_policy_definition.intrusion_prevention_policy_definition[each.value.intrusion_prevention_policy].id
version = sdwan_intrusion_prevention_policy_definition.intrusion_prevention_policy_definition[each.value.intrusion_prevention_policy].version
}]
])
direct_internet_applications = (
Expand Down

0 comments on commit d64c03c

Please sign in to comment.