From 7942957067d5038b2c91814503089585d937f1f1 Mon Sep 17 00:00:00 2001 From: samidbb Date: Thu, 14 Dec 2023 14:21:32 +0100 Subject: [PATCH] minor --- modules/security_group/main.tf | 7 +------ tests/instance/main.tf | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/modules/security_group/main.tf b/modules/security_group/main.tf index 19cbdc15..e61bc423 100644 --- a/modules/security_group/main.tf +++ b/modules/security_group/main.tf @@ -35,12 +35,7 @@ resource "aws_security_group" "this_name_prefix" { vpc_id = var.vpc_id revoke_rules_on_delete = var.revoke_rules_on_delete - tags = merge( - { - "Name" = format("%s", var.name) - }, - var.tags, - ) + tags = var.tags lifecycle { create_before_destroy = true diff --git a/tests/instance/main.tf b/tests/instance/main.tf index c3515513..1d9a442e 100644 --- a/tests/instance/main.tf +++ b/tests/instance/main.tf @@ -13,8 +13,7 @@ locals { azs = slice(data.aws_availability_zones.available.names, 0, 3) tags = { - Example = local.name - Repository = "https://github.com/dfds/aws-modules-rds" + "dfds.automation.tool" = "Terraform" } } @@ -65,6 +64,7 @@ module "rds_instance_test" { cost_centre = "IT" data_classification = "public" enable_default_backup = true + optional_tags = local.tags } ################################################################################