From a23bcd1fcc568536e022545463a6956f733dd618 Mon Sep 17 00:00:00 2001 From: Enrico Stahn Date: Fri, 12 May 2023 16:56:52 +0200 Subject: [PATCH] fix: tag security group with correct name The introduction of `security_group_name` missed the adjustment of the `Name` tag for the security group. This rectifies this issue. --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index afb703a..be8414f 100644 --- a/main.tf +++ b/main.tf @@ -313,7 +313,7 @@ resource "aws_security_group" "this" { vpc_id = var.vpc_id description = coalesce(var.security_group_description, "Control traffic to/from RDS Aurora ${var.name}") - tags = merge(var.tags, var.security_group_tags, { Name = var.name }) + tags = merge(var.tags, var.security_group_tags, { Name = local.security_group_name }) lifecycle { create_before_destroy = true