Skip to content

Commit 2173322

Browse files
committed
chore(runtime): remove hardcoded value for runtime
1 parent 0a6a45e commit 2173322

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module "lambda" {
9999
handler = "${local.lambda_handler}.lambda_handler"
100100
source_path = var.lambda_source_path != null ? "${path.root}/${var.lambda_source_path}" : "${path.module}/functions/notify_slack.py"
101101
recreate_missing_package = var.recreate_missing_package
102-
runtime = "python3.11"
102+
runtime = var.runtime
103103
architectures = var.architectures
104104
timeout = 30
105105
kms_key_arn = var.kms_key_arn

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,3 +287,9 @@ variable "trigger_on_package_timestamp" {
287287
type = bool
288288
default = false
289289
}
290+
291+
variable "runtime" {
292+
description = "Lambda Function runtime"
293+
type = string
294+
default = "python3.11"
295+
}

0 commit comments

Comments
 (0)