Skip to content

Commit 217c16a

Browse files
chore: Adding python 3.14 runtime (#61)
* Adding python 3.14 runtime * bumping python version number --------- Co-authored-by: Alex Angelillo <alex.angelillo@datadoghq.com>
1 parent ca6938f commit 217c16a

File tree

6 files changed

+41
-3
lines changed

6 files changed

+41
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module "lambda-datadog" {
2222
function_name = "example-function"
2323
role = aws_iam_role.lambda_role.arn
2424
handler = "app.lambda_handler"
25-
runtime = "python3.13"
25+
runtime = "python3.14"
2626
memory_size = 256
2727
2828
environment_variables = {

examples/python/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ module "lambda-datadog" {
5555
function_name = "terraform-example-python-${var.datadog_service_name}-function"
5656
role = aws_iam_role.lambda_role.arn
5757
handler = "app.lambda_handler"
58-
runtime = "python3.13"
58+
runtime = "python3.14"
5959
architectures = ["arm64"]
6060
memory_size = 256
6161

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ locals {
5151
"python3.11" = "Datadog-Python311"
5252
"python3.12" = "Datadog-Python312"
5353
"python3.13" = "Datadog-Python313"
54+
"python3.14" = "Datadog-Python314"
5455
}
5556
}
5657

@@ -116,6 +117,7 @@ check "runtime_support" {
116117
"python3.11",
117118
"python3.12",
118119
"python3.13",
120+
"python3.14",
119121
"provided.al2",
120122
"provided.al2023",
121123
],

smoke_tests/main.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,26 @@ data "archive_file" "zip_node_code" {
5454
output_path = "${path.module}/build/hello-node.zip"
5555
}
5656

57+
module "lambda-python-3-14" {
58+
source = "../"
59+
60+
filename = "${path.module}/build/hello-python.zip"
61+
function_name = "terraform-smoketest-python-3-14-${var.datadog_service_name}-function"
62+
role = aws_iam_role.lambda_role.arn
63+
handler = "app.lambda_handler"
64+
runtime = "python3.14"
65+
architectures = ["arm64"]
66+
memory_size = 256
67+
68+
environment_variables = {
69+
"DD_API_KEY_SECRET_ARN" : var.datadog_secret_arn
70+
"DD_ENV" : "dev"
71+
"DD_SERVICE" : var.datadog_service_name
72+
"DD_SITE" : var.datadog_site
73+
"DD_VERSION" : "1.0.0"
74+
}
75+
}
76+
5777
module "lambda-python-3-13" {
5878
source = "../"
5979

smoke_tests/outputs.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
output "python_3_14_arn" {
2+
description = "Amazon Resource Name (ARN) identifying your Lambda Function."
3+
value = module.lambda-python-3-14.arn
4+
}
5+
6+
output "python_3_14_invoke_arn" {
7+
description = "ARN to be used for invoking Lambda Function from API Gateway."
8+
value = module.lambda-python-3-14.invoke_arn
9+
}
10+
11+
output "python_3_14_function_name" {
12+
description = "Unique name for your Lambda Function"
13+
value = module.lambda-python-3-14.function_name
14+
}
15+
16+
117
output "python_3_13_arn" {
218
description = "Amazon Resource Name (ARN) identifying your Lambda Function."
319
value = module.lambda-python-3-13.arn

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ variable "datadog_node_layer_version" {
2929
variable "datadog_python_layer_version" {
3030
description = "Version for the Datadog Python Layer"
3131
type = number
32-
default = 117
32+
default = 118
3333
}
3434

3535
variable "fips" {

0 commit comments

Comments
 (0)