File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
modules/fabric-net-firewall Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ module "net-firewall" {
3636| ------| -------------| :----:| :-----:| :-----:|
3737| admin\_ ranges | IP CIDR ranges that have complete access to all subnets. | list | ` <list> ` | no |
3838| admin\_ ranges\_ enabled | Enable admin ranges-based rules. | string | ` "false" ` | no |
39+ | custom\_ rules | List of custom rule definitions (refer to variables file for syntax). | map | ` <map> ` | no |
3940| http\_ source\_ ranges | List of IP CIDR ranges for tag-based HTTP rule, defaults to 0.0.0.0/0. | list | ` <list> ` | no |
4041| https\_ source\_ ranges | List of IP CIDR ranges for tag-based HTTPS rule, defaults to 0.0.0.0/0. | list | ` <list> ` | no |
4142| internal\_ allow | Allow rules for internal ranges. | list | ` <list> ` | no |
Original file line number Diff line number Diff line change @@ -120,8 +120,8 @@ resource "google_compute_firewall" "custom" {
120120 source_ranges = each. value . direction == " INGRESS" ? each. value . ranges : null
121121 destination_ranges = each. value . direction == " EGRESS" ? each. value . ranges : null
122122 source_tags = each. value . use_service_accounts || each. value . direction == " EGRESS" ? null : each. value . sources
123- target_tags = each. value . use_service_accounts ? null : each. value . targets
124123 source_service_accounts = each. value . use_service_accounts && each. value . direction == " INGRESS" ? each. value . sources : null
124+ target_tags = each. value . use_service_accounts ? null : each. value . targets
125125 target_service_accounts = each. value . use_service_accounts ? each. value . targets : null
126126 disabled = lookup (each. value . extra_attributes , " disabled" , false )
127127 priority = lookup (each. value . extra_attributes , " priority" , 1000 )
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ variable "https_source_ranges" {
6767}
6868
6969variable "custom_rules" {
70- description = " List of custom rule definitions."
70+ description = " List of custom rule definitions (refer to variables file for syntax)."
71+ default = {}
7172 type = map (object ({
7273 description = string
7374 direction = string
You can’t perform that action at this time.
0 commit comments