File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ module "lambda" {
99
99
handler = " ${ local . lambda_handler } .lambda_handler"
100
100
source_path = var. lambda_source_path != null ? " ${ path . root } /${ var . lambda_source_path } " : " ${ path . module } /functions/notify_slack.py"
101
101
recreate_missing_package = var. recreate_missing_package
102
- runtime = " python3.11 "
102
+ runtime = var . runtime
103
103
architectures = var. architectures
104
104
timeout = 30
105
105
kms_key_arn = var. kms_key_arn
Original file line number Diff line number Diff line change @@ -287,3 +287,9 @@ variable "trigger_on_package_timestamp" {
287
287
type = bool
288
288
default = false
289
289
}
290
+
291
+ variable "runtime" {
292
+ description = " Lambda Function runtime"
293
+ type = string
294
+ default = " python3.11"
295
+ }
You can’t perform that action at this time.
0 commit comments