Skip to content

Commit 3b1e627

Browse files
committed
fix: remove validation in env_vars
1 parent e9fcc96 commit 3b1e627

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

variables.tf

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,7 @@ variable "file_name" {
3737
variable "env_vars" {
3838
type = map(string)
3939
description = "A map of env vars to be passed to lambda function"
40-
41-
validation {
42-
condition = alltrue([
43-
for key, val in var.env_vars : can(regex("^[A-Z]+$", key))
44-
])
45-
error_message = "Environment variables should have key in upper case be of the form {VARIABLE_NAME: \"value\"}"
46-
}
40+
default = {}
4741
}
4842

4943
variable "lambda_timeout" {

0 commit comments

Comments
 (0)