Skip to content

Commit

Permalink
Merge pull request #37 from toluna-terraform/upgrade-nodejs
Browse files Browse the repository at this point in the history
upgrading nodejs to 20
  • Loading branch information
evgenygigi authored Jul 29, 2024
2 parents 4fc88c1 + b9df3d3 commit 89d2c07
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions modules/integration-runner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ locals {
resource "aws_lambda_layer_version" "lambda_layer_integration" {
filename = "${path.module}/layer/layer.zip"
layer_name = "postman"
compatible_runtimes = ["nodejs16.x"]
compatible_runtimes = ["nodejs20.x"]
source_code_hash = filebase64sha256("${path.module}/layer/layer.zip")
}

Expand All @@ -45,7 +45,7 @@ resource "aws_lambda_function" "integration_runner" {
function_name = "${var.app_name}-${var.env_type}-${each.key}-integration-runner"
role = var.role
handler = "integration_runner.handler"
runtime = "nodejs16.x"
runtime = "nodejs20.x"
layers = [aws_lambda_layer_version.lambda_layer_integration.arn]
timeout = 900
source_code_hash = filebase64sha256("${path.module}/lambda/lambda.zip")
Expand All @@ -67,7 +67,7 @@ resource "aws_lambda_function" "integration_runner_default" {
function_name = "${var.app_name}-${var.env_type}-integration-runner"
role = var.role
handler = "integration_runner.handler"
runtime = "nodejs16.x"
runtime = "nodejs20.x"
layers = [aws_lambda_layer_version.lambda_layer_integration.arn]
timeout = 900
source_code_hash = filebase64sha256("${path.module}/lambda/lambda.zip")
Expand Down
6 changes: 3 additions & 3 deletions modules/stress-runner/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ resource "aws_codebuild_project" "stress_runner" {
resource "aws_lambda_layer_version" "lambda_layer_stress" {
filename = "${path.module}/layer/layer.zip"
layer_name = "postman"
compatible_runtimes = ["nodejs16.x"]
compatible_runtimes = ["nodejs20.x"]
source_code_hash = filebase64sha256("${path.module}/layer/layer.zip")
}

Expand All @@ -67,7 +67,7 @@ resource "aws_lambda_function" "stress_runner" {
function_name = each.key == "default" ? "${var.app_name}-${var.env_type}-stress-runner" : "${var.app_name}-${var.env_type}-${each.key}-stress-runner"
role = var.role
handler = "stress_runner.handler"
runtime = "nodejs16.x"
runtime = "nodejs20.x"
layers = [aws_lambda_layer_version.lambda_layer_stress.arn]
timeout = 180
source_code_hash = filebase64sha256("${path.module}/lambda/lambda.zip")
Expand All @@ -89,7 +89,7 @@ resource "aws_lambda_function" "stress_runner_default" {
function_name = "${var.app_name}-${var.env_type}-stress-runner"
role = var.role
handler = "stress_runner.handler"
runtime = "nodejs16.x"
runtime = "nodejs20.x"
layers = [aws_lambda_layer_version.lambda_layer_stress.arn]
timeout = 180
source_code_hash = filebase64sha256("${path.module}/lambda/lambda.zip")
Expand Down
4 changes: 2 additions & 2 deletions modules/test-framework-manager/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ resource "aws_s3_bucket_policy" "postman_bucket" {
resource "aws_lambda_layer_version" "lambda_layer" {
filename = "${path.module}/layer/layer.zip"
layer_name = "postman"
compatible_runtimes = ["nodejs16.x"]
compatible_runtimes = ["nodejs20.x"]
source_code_hash = filebase64sha256("${path.module}/layer/layer.zip")
}

Expand All @@ -78,7 +78,7 @@ resource "aws_lambda_function" "test_framework" {
function_name = "${var.app_name}-${var.env_type}-test-framework-manager"
role = aws_iam_role.test_framework.arn
handler = "test_framework_manager.handler"
runtime = "nodejs16.x"
runtime = "nodejs20.x"
layers = [aws_lambda_layer_version.lambda_layer.arn]
timeout = 900
source_code_hash = filebase64sha256("${path.module}/lambda/lambda.zip")
Expand Down

0 comments on commit 89d2c07

Please sign in to comment.