From 332498901584e38d53d419c646fe96ef2b25e72d Mon Sep 17 00:00:00 2001 From: lorenmh Date: Sat, 10 Jun 2023 14:48:07 -0400 Subject: [PATCH 1/2] update runtime to nodejs16.x --- module/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/main.tf b/module/main.tf index e5cea2f..017ea0a 100644 --- a/module/main.tf +++ b/module/main.tf @@ -75,7 +75,7 @@ resource "aws_lambda_function" "basic_auth" { role = "${aws_iam_role.lambda.arn}" handler = "basic-auth.handler" source_code_hash = "${data.archive_file.basic_auth_function.output_base64sha256}" - runtime = "nodejs12.x" + runtime = "nodejs16.x" description = "Protect CloudFront distributions with Basic Authentication" publish = true } From b97f2c2424d3f6732f9b83e210a8865f6da97114 Mon Sep 17 00:00:00 2001 From: lorenmh Date: Sat, 10 Jun 2023 15:21:05 -0400 Subject: [PATCH 2/2] nodejs18.x --- module/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/main.tf b/module/main.tf index 017ea0a..5e8c952 100644 --- a/module/main.tf +++ b/module/main.tf @@ -75,7 +75,7 @@ resource "aws_lambda_function" "basic_auth" { role = "${aws_iam_role.lambda.arn}" handler = "basic-auth.handler" source_code_hash = "${data.archive_file.basic_auth_function.output_base64sha256}" - runtime = "nodejs16.x" + runtime = "nodejs18.x" description = "Protect CloudFront distributions with Basic Authentication" publish = true }