We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 976339d commit be85256Copy full SHA for be85256
main.tf
@@ -86,7 +86,7 @@ resource "aws_backup_selection" "main" {
86
# SNS Backup Notifications
87
#######
88
resource "aws_sns_topic" "main" {
89
- count = var.create_sns_topic ? 1 : 0
+ count = var.create_sns_topic && var.enable_sns_notifications ? 1 : 0
90
91
name = var.vault_name != null ? "${aws_backup_vault.main[0].name}-events" : "backup-vault-events"
92
kms_master_key_id = var.vault_sns_kms_key_arn
0 commit comments