From 541cc3d33debd73ca1f961054af8014a7ae08f06 Mon Sep 17 00:00:00 2001 From: Arman08 <52649727+armanzeroeight@users.noreply.github.com> Date: Tue, 14 Oct 2025 15:08:51 +0200 Subject: [PATCH 1/2] fix: Use computed `local.security_group_name` in the security group `Name` tag (#458) --- main.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 39b3e235..4eac769e 100644 --- a/main.tf +++ b/main.tf @@ -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, ) @@ -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, ) From 809d7d68aa98333f64f36f4a09aafb817d8b9341 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 14 Oct 2025 13:09:27 +0000 Subject: [PATCH 2/2] chore(release): version 6.1.2 [skip ci] ## [6.1.2](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/compare/v6.1.1...v6.1.2) (2025-10-14) ### Bug Fixes * Use computed `local.security_group_name` in the security group `Name` tag ([#458](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/issues/458)) ([541cc3d](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/commit/541cc3d33debd73ca1f961054af8014a7ae08f06)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ab4899b3..f944be29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +## [6.1.2](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/compare/v6.1.1...v6.1.2) (2025-10-14) + + +### Bug Fixes + +* Use computed `local.security_group_name` in the security group `Name` tag ([#458](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/issues/458)) ([541cc3d](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/commit/541cc3d33debd73ca1f961054af8014a7ae08f06)) + ## [6.1.1](https://github.com/terraform-aws-modules/terraform-aws-ec2-instance/compare/v6.1.0...v6.1.1) (2025-08-25)