Skip to content

Commit

Permalink
fix: Add support for enable_logging on firewall rules (#155)
Browse files Browse the repository at this point in the history
* Remove the code comment to use enable_logging

* Update modules/fabric-net-firewall/main.tf

Co-Authored-By: Morgante Pell <[email protected]>

Co-authored-by: Morgante Pell <[email protected]>
  • Loading branch information
rsdomingues and morgante authored Feb 26, 2020
1 parent 6fac78e commit febec4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/fabric-net-firewall/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ resource "google_compute_firewall" "custom" {
target_service_accounts = each.value.use_service_accounts ? each.value.targets : null
disabled = lookup(each.value.extra_attributes, "disabled", false)
priority = lookup(each.value.extra_attributes, "priority", 1000)
# enable_logging = lookup(each.value.extra_attributes, "enable_logging", false)
enable_logging = lookup(each.value.extra_attributes, "enable_logging", null)

dynamic "allow" {
for_each = [for rule in each.value.rules : rule if each.value.action == "allow"]
Expand Down

0 comments on commit febec4e

Please sign in to comment.