Skip to content

Commit 45fc815

Browse files
authored
fix: Custom Security Group Map (#71)
* prefix_list_ids in main.tf * added protocol to map of custom security group rules
1 parent ffd0382 commit 45fc815

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ module "ecs_alb_service_task" {
365365
resource "aws_security_group_rule" "custom_sg_rules" {
366366
for_each = local.enabled && length(var.custom_security_group_rules) > 0 ? {
367367
for sg_rule in var.custom_security_group_rules :
368-
format("%s_%s_%s", sg_rule.protocol, sg_rule.from_port, sg_rule.to_port) => sg_rule
368+
format("%s_%s_%s_%s", sg_rule.type, sg_rule.protocol, sg_rule.from_port, sg_rule.to_port) => sg_rule
369369
} : {}
370370

371371
description = try(each.value.description, null)

0 commit comments

Comments
 (0)