Skip to content

Commit

Permalink
update node js versions + packages (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-robitaille authored Oct 19, 2023
1 parent e8de8d6 commit 372649c
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/terragrunt-plan-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 18 additions & 18 deletions aws/app/lambda.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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" {
Expand Down Expand Up @@ -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
]
Expand All @@ -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" {
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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" {
Expand Down Expand Up @@ -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

Expand All @@ -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" {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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" {
Expand Down Expand Up @@ -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
]
Expand All @@ -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" {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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" {
Expand Down
6 changes: 3 additions & 3 deletions aws/app/lambda/archive_form_responses/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
2 changes: 1 addition & 1 deletion aws/app/lambda/archive_form_templates/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions aws/app/lambda/audit_logs/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 2 additions & 2 deletions aws/app/lambda/nagware/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
12 changes: 6 additions & 6 deletions aws/app/lambda/reliability/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions aws/app/lambda/submission/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 372649c

Please sign in to comment.