Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use computed local var in sg rule name
  • Loading branch information
armanzeroeight committed Oct 14, 2025
commit 9acff2f937f97cdb15da98997a306d1d3bca92e2
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ resource "aws_vpc_security_group_egress_rule" "this" {
tags = merge(
var.tags,
var.security_group_tags,
{ "Name" = "${var.name}-${each.key}" },
{ "Name" = "${local.security_group_name}-${each.key}" },
each.value.tags,
)

Expand All @@ -800,7 +800,7 @@ resource "aws_vpc_security_group_ingress_rule" "this" {
tags = merge(
var.tags,
var.security_group_tags,
{ "Name" = "${var.name}-${each.key}" },
{ "Name" = "${local.security_group_name}-${each.key}" },
each.value.tags,
)

Expand Down
Loading