From d0087672d9288f807b627f7977bbdd0eea55055b Mon Sep 17 00:00:00 2001 From: Lucas Gothelipe Date: Mon, 4 Jul 2022 08:31:25 +0000 Subject: [PATCH] Added tag Identifier --- rds.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rds.tf b/rds.tf index f8f1132..2a8d6ea 100644 --- a/rds.tf +++ b/rds.tf @@ -39,7 +39,8 @@ resource "aws_db_instance" "rds_db" { final_snapshot_identifier = var.final_snapshot_identifier == "" ? "${var.environment_name}-${var.name}-final-snapshot" : var.final_snapshot_identifier tags = { - Backup = var.backup + Backup = var.backup + Identifier = var.identifier == "" ? "${var.environment_name}-${var.name}" : var.identifier } }