Skip to content

Commit

Permalink
add more to rules
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jun 1, 2021
1 parent d30feaa commit 743aeb6
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions peer/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,13 @@ module "nacl_rule_self" {
}
network_acl_id = local.self_network_acl_ids[0]

rule_description = local.self_label
cidr_blocks = [local.peer_cidr_block]
rules = ["all_inbound", "all_outbound"]
rule_number = var.rule_number
rule_increment = var.rule_increment
rule_description = local.self_label
cidr_blocks = [local.peer_cidr_block]
named_cidr_blocks = ["vpc"]
# merge_cidr_blocks = { "vpc" = local.peer_cidr_block }
rules = ["all_inbound", "all_outbound"]
rule_number = var.rule_number
rule_increment = var.rule_increment
tags = merge(
var.tags,
local.base_tags,
Expand All @@ -177,13 +179,16 @@ module "nacl_rule_peer" {
}
network_acl_id = local.peer_network_acl_ids[0]

rule_description = local.peer_label
cidr_blocks = [local.self_cidr_block]
rules = ["all_inbound", "all_outbound"]
rule_number = var.peer_rule_number
rule_increment = var.peer_rule_increment
rule_description = local.peer_label
cidr_blocks = [local.self_cidr_block]
named_cidr_blocks = ["vpc"]
# merge_cidr_blocks = { "vpc" = local.self_cidr_block }
rules = ["all_inbound", "all_outbound"]
rule_number = var.peer_rule_number
rule_increment = var.peer_rule_increment
tags = merge(
var.tags,
local.base_tags,
)
}

0 comments on commit 743aeb6

Please sign in to comment.