Skip to content

Commit be1e83e

Browse files
committed
feat: add variable to email sender debug mode
1 parent 82d4e03 commit be1e83e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ resource "aws_lambda_function" "email_msg_sender" {
354354

355355
environment {
356356
variables = {
357+
DEBUG_MODE = var.email_sender_debug_mode
357358
LOG_LEVEL = var.service_log_level
358359
KMS_KEY_ID = module.kms_key.key_arn
359360
EMAIL_SENDER_ENABLED = local.email_sender_enabled

variables.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ variable "service_log_level" {
2424

2525
# ------------------------------------------------------------- email-sender ---
2626

27+
variable "email_sender_debug_mode" {
28+
type = bool
29+
default = false
30+
}
31+
2732
variable "email_sender_version" {
2833
type = string
2934
default = "latest"
3035
}
3136

32-
3337
variable "email_sender_enabled" {
3438
description = "Whether or not the Email sender is enabled."
3539
type = bool

0 commit comments

Comments
 (0)