Skip to content

Commit

Permalink
Merge pull request #33 from SPHTech-Platform/fix-var
Browse files Browse the repository at this point in the history
Set default values for log configs vars
  • Loading branch information
wayne-root authored Apr 25, 2024
2 parents 28b5380 + 8ec8674 commit dbe75a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ variable "source_path" {
variable "logging_application_log_level" {
type = string
description = "The application log level of your lambda"
default = null
default = "INFO"
validation {
condition = var.logging_application_log_level == null ? true : contains(["TRACE", "DEBUG", "INFO", "WARN", "ERROR", "FATAL"], var.logging_application_log_level)
error_message = "Valid values for logging_info.application_log_level are (TRACE, DEBUG, INFO, WARN, ERROR, FATAL)."
Expand All @@ -285,7 +285,7 @@ variable "logging_log_group" {
variable "logging_system_log_level" {
type = string
description = "System log level of your lambda"
default = null
default = "INFO"
validation {
condition = var.logging_system_log_level == null ? true : contains(["DEBUG", "INFO", "WARN", null], var.logging_system_log_level)
error_message = "Valid values for logging_info.system_log_level are (DEBUG, INFO, WARN)."
Expand Down

0 comments on commit dbe75a0

Please sign in to comment.