We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96ba72e commit d34d7cfCopy full SHA for d34d7cf
lambda-function-url-terraform/main.tf
@@ -2,7 +2,7 @@ terraform {
2
required_providers {
3
aws = {
4
source = "hashicorp/aws"
5
- version = "~> 4.21"
+ version = "~> 5.0"
6
}
7
8
@@ -20,7 +20,7 @@ resource "aws_lambda_function" "lambda_function" {
20
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
21
handler = "app.handler"
22
role = aws_iam_role.lambda_iam_role.arn
23
- runtime = "nodejs16.x"
+ runtime = "nodejs22.x"
24
25
26
data "archive_file" "lambda_zip_file" {
@@ -71,4 +71,4 @@ output "FunctionARN" {
71
output "FunctionUrlEndpoint" {
72
value = aws_lambda_function_url.function_url.function_url
73
description = "Lambda function url"
74
-}
+}
0 commit comments