Skip to content

Commit

Permalink
use proper variables
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed May 10, 2021
1 parent f3d2ec8 commit 1ea836d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nacl-rules/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ locals {

cidr_blocks = flatten([for c in var.named_cidr_blocks : lookup(local.cb3, c, [])])

rules = ["http_inbound", "https_inbound", "all_inbound"]
rule_definitions = local._defaults["nacl_all_rules"]
rule_number = 1000
rules = var.rules
rule_definitions = length(var.rule_definitions) > 0 ? var.rule_definitions : local._defaults["nacl_all_rules"]
rule_number = var.rule_number
rule_increment = var.rule_increment

r1 = setproduct(local.cidr_blocks, local.rules)
Expand Down

0 comments on commit 1ea836d

Please sign in to comment.