diff --git a/aws/telemetry/main.tf b/aws/telemetry/main.tf index 236b964e..f9db7b77 100644 --- a/aws/telemetry/main.tf +++ b/aws/telemetry/main.tf @@ -11,6 +11,8 @@ module "sns_topics" { "${source}-${severity}" ] ]) + + kms_alias_name = var.kms_alias_name } module "prometheus_workspace" { diff --git a/aws/telemetry/modules/sns-topics/variables.tf b/aws/telemetry/modules/sns-topics/variables.tf index 83c7c6b6..8dbaf2b5 100644 --- a/aws/telemetry/modules/sns-topics/variables.tf +++ b/aws/telemetry/modules/sns-topics/variables.tf @@ -15,6 +15,11 @@ variable "sns_topic_names" { type = list(string) } +variable "kms_alias_name" { + description = "KMS alias name for SNS topics" + type = string +} + variable "tags" { description = "Tags to be applied to created resources" type = map(string) diff --git a/aws/telemetry/variables.tf b/aws/telemetry/variables.tf index 20513abb..df0e9e7e 100644 --- a/aws/telemetry/variables.tf +++ b/aws/telemetry/variables.tf @@ -68,3 +68,9 @@ variable "tags" { type = map(string) default = {} } + +variable "kms_alias_name" { + description = "KMS alias name for SNS topics" + type = string + default = "alias/sns-alarm-topics" +}