Skip to content

Commit f46ecd7

Browse files
committed
upgrade Lambda runtime to python3.13
1 parent f2dfdad commit f46ecd7

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12.5
1+
3.13.0

example/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ resource "aws_lambda_function" "custom_responders" {
9696
function_name = "${local.name}-api-${each.value}"
9797
handler = "index.handler"
9898
role = module.slackbot.roles["lambda"].arn
99-
runtime = "python3.12"
99+
runtime = "python3.13"
100100
source_code_hash = data.archive_file.custom_responders[each.value].output_base64sha256
101101
}
102102

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ resource "aws_lambda_function" "functions" {
380380
handler = "index.handler"
381381
memory_size = each.value.memory_size
382382
role = aws_iam_role.roles["lambda"].arn
383-
runtime = "python3.12"
383+
runtime = var.lambda_runtime
384384
source_code_hash = data.archive_file.packages[each.key].output_base64sha256
385385
tags = var.tags
386386
timeout = 3

variables.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,16 @@ variable "domain_zone_id" {
7373
type = string
7474
}
7575

76+
##############
77+
# LAMBDA #
78+
##############
79+
80+
variable "lambda_runtime" {
81+
description = "Lambda function runtime"
82+
type = string
83+
default = "python3.13"
84+
}
85+
7686
#############
7787
# SLACK #
7888
#############

0 commit comments

Comments
 (0)