Skip to content

Commit 7b4c64e

Browse files
committed
change validation rule for python version including python 3.11
1 parent 82cdfe9 commit 7b4c64e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

terraform/modules/aws-lambda-folder-ingestion/02-inputs-optional.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ variable "runtime" {
2121
description = "Runtime to use for the Lambda Function"
2222
default = "python3.11"
2323
validation {
24-
condition = can(regex("python3[.]([7-9]|10)", var.runtime))
24+
condition = contains(["python3.9", "python3.10", "python3.11"], var.runtime)
2525
error_message = "Runtime must be a valid Python runtime"
2626
}
2727

0 commit comments

Comments
 (0)