From e9d5ef40eee84f6f8c77bca0b9c27974239d061a Mon Sep 17 00:00:00 2001 From: Jan Sebastian Siwy Date: Mon, 23 Sep 2024 18:19:39 +0200 Subject: [PATCH 1/2] Add support for resource-specific tags --- notifications.tf | 2 +- variables.tf | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/notifications.tf b/notifications.tf index 7949c8a..38b0a53 100644 --- a/notifications.tf +++ b/notifications.tf @@ -1,6 +1,6 @@ resource "aws_sns_topic" "this" { name = var.sns_topic_name - tags = var.default_tags + tags = merge(var.default_tags, var.sns_topic_tags) } resource "aws_ses_identity_notification_topic" "bounce" { diff --git a/variables.tf b/variables.tf index 137afb7..9010956 100644 --- a/variables.tf +++ b/variables.tf @@ -34,3 +34,12 @@ variable "sns_topic_name" { Name of SNS topic. EOS } + +variable "sns_topic_tags" { + type = map(string) + default = {} + + description = < Date: Mon, 23 Sep 2024 18:29:10 +0200 Subject: [PATCH 2/2] Update variables.tf --- variables.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables.tf b/variables.tf index 9010956..cf1ebac 100644 --- a/variables.tf +++ b/variables.tf @@ -40,6 +40,6 @@ variable "sns_topic_tags" { default = {} description = <