Skip to content

Commit d34d7cf

Browse files
committed
lambda-function-url-terraform: Update runtime to nodejs22.x
1 parent 96ba72e commit d34d7cf

File tree

1 file changed

+3
-3
lines changed
  • lambda-function-url-terraform

1 file changed

+3
-3
lines changed

lambda-function-url-terraform/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
aws = {
44
source = "hashicorp/aws"
5-
version = "~> 4.21"
5+
version = "~> 5.0"
66
}
77
}
88

@@ -20,7 +20,7 @@ resource "aws_lambda_function" "lambda_function" {
2020
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
2121
handler = "app.handler"
2222
role = aws_iam_role.lambda_iam_role.arn
23-
runtime = "nodejs16.x"
23+
runtime = "nodejs22.x"
2424
}
2525

2626
data "archive_file" "lambda_zip_file" {
@@ -71,4 +71,4 @@ output "FunctionARN" {
7171
output "FunctionUrlEndpoint" {
7272
value = aws_lambda_function_url.function_url.function_url
7373
description = "Lambda function url"
74-
}
74+
}

0 commit comments

Comments
 (0)