From 372649c42ce9f04e517a22d32c6fd0f840402c2f Mon Sep 17 00:00:00 2001 From: Bryan Robitaille Date: Thu, 19 Oct 2023 10:25:41 -0400 Subject: [PATCH] update node js versions + packages (#514) --- .github/workflows/terragrunt-plan-staging.yml | 2 +- aws/app/lambda.tf | 36 +++++++++---------- .../nodejs/package.json | 6 ++-- .../nodejs/package.json | 2 +- aws/app/lambda/audit_logs/nodejs/package.json | 4 +-- .../nodejs/package.json | 2 +- aws/app/lambda/nagware/nodejs/package.json | 4 +-- .../lambda/reliability/nodejs/package.json | 12 +++---- aws/app/lambda/submission/nodejs/package.json | 4 +-- 9 files changed, 36 insertions(+), 36 deletions(-) diff --git a/.github/workflows/terragrunt-plan-staging.yml b/.github/workflows/terragrunt-plan-staging.yml index 599e482f3..39e915772 100644 --- a/.github/workflows/terragrunt-plan-staging.yml +++ b/.github/workflows/terragrunt-plan-staging.yml @@ -17,7 +17,7 @@ env: AWS_REGION: ca-central-1 AWS_ACCESS_KEY_ID: ${{ secrets.STAGING_AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.STAGING_AWS_SECRET_ACCESS_KEY }} - CONFTEST_VERSION: 0.36.0 + CONFTEST_VERSION: 0.46.0 TERRAFORM_VERSION: 1.4.2 TERRAGRUNT_VERSION: 0.46.3 TF_INPUT: false diff --git a/aws/app/lambda.tf b/aws/app/lambda.tf index 8d783aa8f..ccbf50717 100644 --- a/aws/app/lambda.tf +++ b/aws/app/lambda.tf @@ -58,7 +58,7 @@ resource "aws_lambda_function" "reliability" { source_code_hash = data.archive_file.reliability_main.output_base64sha256 - runtime = "nodejs14.x" + runtime = "nodejs18.x" layers = [ aws_lambda_layer_version.reliability_lib.arn, aws_lambda_layer_version.reliability_nodejs.arn @@ -91,14 +91,14 @@ resource "aws_lambda_layer_version" "reliability_lib" { filename = "/tmp/reliability_lib.zip" layer_name = "reliability_lib_packages" source_code_hash = data.archive_file.reliability_lib.output_base64sha256 - compatible_runtimes = ["nodejs12.x", "nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_layer_version" "reliability_nodejs" { filename = "/tmp/reliability_nodejs.zip" layer_name = "reliability_node_packages" source_code_hash = data.archive_file.reliability_nodejs.output_base64sha256 - compatible_runtimes = ["nodejs12.x", "nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_event_source_mapping" "reliability" { @@ -147,7 +147,7 @@ resource "aws_lambda_function" "submission" { source_code_hash = data.archive_file.submission_main.output_base64sha256 - runtime = "nodejs14.x" + runtime = "nodejs18.x" layers = [ aws_lambda_layer_version.submission_lib.arn ] @@ -174,7 +174,7 @@ resource "aws_lambda_layer_version" "submission_lib" { filename = "/tmp/submission_lib.zip" layer_name = "submission_node_packages" source_code_hash = data.archive_file.submission_lib.output_base64sha256 - compatible_runtimes = ["nodejs12.x", "nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_permission" "submission" { @@ -224,7 +224,7 @@ resource "aws_lambda_function" "archiver" { handler = "archiver.handler" source_code_hash = data.archive_file.archiver_main.output_base64sha256 - runtime = "nodejs14.x" + runtime = "nodejs18.x" timeout = 10 layers = [ aws_lambda_layer_version.archiver_lib.arn, @@ -254,14 +254,14 @@ resource "aws_lambda_layer_version" "archiver_lib" { filename = "/tmp/archiver_lib.zip" layer_name = "archiver_lib_packages" source_code_hash = data.archive_file.archiver_lib.output_base64sha256 - compatible_runtimes = ["nodejs12.x", "nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_layer_version" "archiver_nodejs" { filename = "/tmp/archiver_nodejs.zip" layer_name = "archiver_node_packages" source_code_hash = data.archive_file.archiver_nodejs.output_base64sha256 - compatible_runtimes = ["nodejs12.x", "nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_permission" "allow_cloudwatch_to_run_archive_form_responses_lambda" { @@ -303,7 +303,7 @@ resource "aws_lambda_function" "dead_letter_queue_consumer" { handler = "dead_letter_queue_consumer.handler" source_code_hash = data.archive_file.dead_letter_queue_consumer_main.output_base64sha256 - runtime = "nodejs14.x" + runtime = "nodejs18.x" layers = [aws_lambda_layer_version.dead_letter_queue_consumer_lib.arn] timeout = 300 @@ -330,7 +330,7 @@ resource "aws_lambda_layer_version" "dead_letter_queue_consumer_lib" { filename = "/tmp/dead_letter_queue_consumer_lib.zip" layer_name = "dead_letter_queue_consumer_node_packages" source_code_hash = data.archive_file.dead_letter_queue_consumer_lib.output_base64sha256 - compatible_runtimes = ["nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_permission" "allow_cloudwatch_to_run_dead_letter_queue_consumer_lambda" { @@ -384,7 +384,7 @@ resource "aws_lambda_function" "archive_form_templates" { source_code_hash = data.archive_file.archive_form_templates_main.output_base64sha256 - runtime = "nodejs14.x" + runtime = "nodejs18.x" layers = [ aws_lambda_layer_version.archive_form_templates_lib.arn, aws_lambda_layer_version.archive_form_templates_nodejs.arn @@ -414,14 +414,14 @@ resource "aws_lambda_layer_version" "archive_form_templates_lib" { filename = "/tmp/archive_form_templates_lib.zip" layer_name = "archive_form_templates_lib_packages" source_code_hash = data.archive_file.archive_form_templates_lib.output_base64sha256 - compatible_runtimes = ["nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_layer_version" "archive_form_templates_nodejs" { filename = "/tmp/archive_form_templates_nodejs.zip" layer_name = "archive_form_templates_node_packages" source_code_hash = data.archive_file.archive_form_templates_nodejs.output_base64sha256 - compatible_runtimes = ["nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_permission" "allow_cloudwatch_to_run_archive_form_templates_lambda" { @@ -464,7 +464,7 @@ resource "aws_lambda_function" "audit_logs" { source_code_hash = data.archive_file.audit_logs_main.output_base64sha256 - runtime = "nodejs16.x" + runtime = "nodejs18.x" layers = [ aws_lambda_layer_version.audit_logs_lib.arn ] @@ -490,7 +490,7 @@ resource "aws_lambda_layer_version" "audit_logs_lib" { filename = "/tmp/audit_logs_lib.zip" layer_name = "audit_logs_node_packages" source_code_hash = data.archive_file.audit_logs_lib.output_base64sha256 - compatible_runtimes = ["nodejs16.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_event_source_mapping" "audit_logs" { @@ -555,7 +555,7 @@ resource "aws_lambda_function" "nagware" { source_code_hash = data.archive_file.nagware_main.output_base64sha256 - runtime = "nodejs14.x" + runtime = "nodejs18.x" layers = [ aws_lambda_layer_version.nagware_lib.arn, aws_lambda_layer_version.nagware_nodejs.arn @@ -590,14 +590,14 @@ resource "aws_lambda_layer_version" "nagware_lib" { filename = "/tmp/nagware_lib.zip" layer_name = "nagware_lib_packages" source_code_hash = data.archive_file.nagware_lib.output_base64sha256 - compatible_runtimes = ["nodejs12.x", "nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_layer_version" "nagware_nodejs" { filename = "/tmp/nagware_nodejs.zip" layer_name = "nagware_node_packages" source_code_hash = data.archive_file.nagware_nodejs.output_base64sha256 - compatible_runtimes = ["nodejs12.x", "nodejs14.x"] + compatible_runtimes = ["nodejs18.x"] } resource "aws_lambda_permission" "allow_cloudwatch_to_run_nagware_lambda" { diff --git a/aws/app/lambda/archive_form_responses/nodejs/package.json b/aws/app/lambda/archive_form_responses/nodejs/package.json index b56509f7d..e94e17f48 100644 --- a/aws/app/lambda/archive_form_responses/nodejs/package.json +++ b/aws/app/lambda/archive_form_responses/nodejs/package.json @@ -4,7 +4,7 @@ "main": "archiver.js", "license": "MIT", "dependencies": { - "@aws-sdk/client-dynamodb": "3.300.0", - "@aws-sdk/client-s3": "3.300.0" + "@aws-sdk/client-dynamodb": "3.430.0", + "@aws-sdk/client-s3": "3.430.0" } -} \ No newline at end of file +} diff --git a/aws/app/lambda/archive_form_templates/nodejs/package.json b/aws/app/lambda/archive_form_templates/nodejs/package.json index 81851be60..8cae6ce06 100644 --- a/aws/app/lambda/archive_form_templates/nodejs/package.json +++ b/aws/app/lambda/archive_form_templates/nodejs/package.json @@ -4,7 +4,7 @@ "main": "reliability.js", "license": "MIT", "dependencies": { - "@aws-sdk/client-rds-data": "^3.105.0", + "@aws-sdk/client-rds-data": "3.430.0", "pg": "^8.7.3" } } diff --git a/aws/app/lambda/audit_logs/nodejs/package.json b/aws/app/lambda/audit_logs/nodejs/package.json index d504401fc..7856bfc4f 100644 --- a/aws/app/lambda/audit_logs/nodejs/package.json +++ b/aws/app/lambda/audit_logs/nodejs/package.json @@ -5,7 +5,7 @@ "type": "module", "license": "MIT", "dependencies": { - "@aws-sdk/client-dynamodb": "3.300.0", - "@aws-sdk/lib-dynamodb": "3.300.0" + "@aws-sdk/client-dynamodb": "3.430.0", + "@aws-sdk/lib-dynamodb": "3.430.0" } } diff --git a/aws/app/lambda/dead_letter_queue_consumer/nodejs/package.json b/aws/app/lambda/dead_letter_queue_consumer/nodejs/package.json index c039f5ec3..7068946d7 100644 --- a/aws/app/lambda/dead_letter_queue_consumer/nodejs/package.json +++ b/aws/app/lambda/dead_letter_queue_consumer/nodejs/package.json @@ -4,6 +4,6 @@ "main": "dead_letter_queue_consumer.js", "license": "MIT", "dependencies": { - "@aws-sdk/client-sqs": "^3.7.0" + "@aws-sdk/client-sqs": "3.430.0" } } diff --git a/aws/app/lambda/nagware/nodejs/package.json b/aws/app/lambda/nagware/nodejs/package.json index 925212515..d5a5c2d49 100644 --- a/aws/app/lambda/nagware/nodejs/package.json +++ b/aws/app/lambda/nagware/nodejs/package.json @@ -4,8 +4,8 @@ "main": "nagware.js", "license": "MIT", "dependencies": { - "@aws-sdk/client-dynamodb": "3.300.0", - "@aws-sdk/client-rds-data": "3.300.0", + "@aws-sdk/client-dynamodb": "3.430.0", + "@aws-sdk/client-rds-data": "3.430.0", "pg": "8.10.0", "notifications-node-client": "5.2.3" } diff --git a/aws/app/lambda/reliability/nodejs/package.json b/aws/app/lambda/reliability/nodejs/package.json index e808901ce..3784ebc8e 100644 --- a/aws/app/lambda/reliability/nodejs/package.json +++ b/aws/app/lambda/reliability/nodejs/package.json @@ -4,12 +4,12 @@ "main": "reliability.js", "license": "MIT", "dependencies": { - "@aws-sdk/client-dynamodb": "3.300.0", - "@aws-sdk/client-lambda": "3.300.0", - "@aws-sdk/client-rds-data": "3.300.0", - "@aws-sdk/client-s3": "3.300.0", - "@aws-sdk/client-sqs": "3.300.0", - "@aws-sdk/lib-dynamodb": "3.300.0", + "@aws-sdk/client-dynamodb": "3.430.0", + "@aws-sdk/client-lambda": "3.430.0", + "@aws-sdk/client-rds-data": "3.430.0", + "@aws-sdk/client-s3": "3.430.0", + "@aws-sdk/client-sqs": "3.430.0", + "@aws-sdk/lib-dynamodb": "3.430.0", "axios": "^0.27.0", "json2md": "^1.10.0", "notifications-node-client": "^5.1.0", diff --git a/aws/app/lambda/submission/nodejs/package.json b/aws/app/lambda/submission/nodejs/package.json index 3eb8ef4bb..fd35dff8d 100644 --- a/aws/app/lambda/submission/nodejs/package.json +++ b/aws/app/lambda/submission/nodejs/package.json @@ -4,8 +4,8 @@ "main": "submission.js", "license": "MIT", "dependencies": { - "@aws-sdk/client-dynamodb": "^3.7.0", - "@aws-sdk/client-sqs": "^3.7.0", + "@aws-sdk/client-dynamodb": "3.430.0", + "@aws-sdk/client-sqs": "3.430.0", "uuid": "^8.3.2" } }