Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ module "lambda-datadog" {
function_name = "example-function"
role = aws_iam_role.lambda_role.arn
handler = "index.lambda_handler"
runtime = "nodejs22.x"
runtime = "nodejs24.x"
memory_size = 256

environment_variables = {
Expand Down
2 changes: 1 addition & 1 deletion examples/node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ module "lambda-datadog" {
function_name = "terraform-example-node-${var.datadog_service_name}-function"
role = aws_iam_role.lambda_role.arn
handler = "index.lambda_handler"
runtime = "nodejs22.x"
runtime = "nodejs24.x"
memory_size = 256

environment_variables = {
Expand Down
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ locals {
"nodejs18.x" = "Datadog-Node18-x"
"nodejs20.x" = "Datadog-Node20-x"
"nodejs22.x" = "Datadog-Node22-x"
"nodejs24.x" = "Datadog-Node24-x"
"python3.8" = "Datadog-Python38"
"python3.9" = "Datadog-Python39"
"python3.10" = "Datadog-Python310"
Expand Down Expand Up @@ -108,6 +109,7 @@ check "runtime_support" {
"nodejs18.x",
"nodejs20.x",
"nodejs22.x",
"nodejs24.x",
"python3.8",
"python3.9",
"python3.10",
Expand Down
19 changes: 19 additions & 0 deletions smoke_tests/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,25 @@ module "lambda-python-3-8" {
}
}

module "lambda-node-24" {
source = "../"

filename = "${path.module}/build/hello-node.zip"
function_name = "terraform-smoketest-node-24-${var.datadog_service_name}-function"
role = aws_iam_role.lambda_role.arn
handler = "index.lambda_handler"
runtime = "nodejs24.x"
memory_size = 256

environment_variables = {
"DD_API_KEY_SECRET_ARN" : var.datadog_secret_arn
"DD_ENV" : "dev"
"DD_SERVICE" : var.datadog_service_name
"DD_SITE" : var.datadog_site
"DD_VERSION" : "1.0.0"
}
}

module "lambda-node-22" {
source = "../"

Expand Down
14 changes: 14 additions & 0 deletions smoke_tests/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@ output "python_3_8_function_name" {
value = module.lambda-python-3-8.function_name
}

output "node_24_arn" {
description = "Amazon Resource Name (ARN) identifying your Lambda Function."
value = module.lambda-node-24.arn
}

output "node_24_invoke_arn" {
description = "ARN to be used for invoking Lambda Function from API Gateway."
value = module.lambda-node-24.invoke_arn
}

output "node_24_function_name" {
description = "Unique name for your Lambda Function"
value = module.lambda-node-24.function_name
}

output "node_22_arn" {
description = "Amazon Resource Name (ARN) identifying your Lambda Function."
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ variable "datadog_java_layer_version" {
variable "datadog_node_layer_version" {
description = "Version for the Datadog Node Layer"
type = number
default = 130
default = 131
}

variable "datadog_python_layer_version" {
Expand Down