Skip to content

chore: update terraform samples without JS SDK from node 16 to 20 #2295

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion alb-lambda-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ resource "aws_lb_target_group_attachment" "target_group_attachment" {
# Create the Lambda Function
resource "aws_lambda_function" "lambda_function" {
function_name = "lambdaFunction"
runtime = "nodejs16.x"
runtime = "nodejs20.x"
handler = "index.handler"
filename = "lambda.zip"
role = aws_iam_role.lambda_role.arn
Expand Down
10 changes: 5 additions & 5 deletions apigw-lambda-qldb-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ resource "aws_lambda_function" "lambda_function_create_person" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "create-person.handler"
role = aws_iam_role.lambda_iam_role_create_person.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
environment {
variables = {
LEDGER_NAME = aws_qldb_ledger.ledger.id
Expand Down Expand Up @@ -118,7 +118,7 @@ resource "aws_lambda_function" "lambda_function_get_person" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "get-person.handler"
role = aws_iam_role.lambda_iam_role_get_person.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
memory_size = 512
environment {
variables = {
Expand Down Expand Up @@ -193,7 +193,7 @@ resource "aws_lambda_function" "lambda_function_get_person_history" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "get-person-history.handler"
role = aws_iam_role.lambda_iam_role_get_person_history.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
memory_size = 512
environment {
variables = {
Expand Down Expand Up @@ -268,7 +268,7 @@ resource "aws_lambda_function" "lambda_function_update_person" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "update-person.handler"
role = aws_iam_role.lambda_iam_role_update_person.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
memory_size = 512
environment {
variables = {
Expand Down Expand Up @@ -344,7 +344,7 @@ resource "aws_lambda_function" "lambda_function_delete_person" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "delete-person.handler"
role = aws_iam_role.lambda_iam_role_delete_person.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
memory_size = 512
environment {
variables = {
Expand Down
2 changes: 1 addition & 1 deletion dynamodb-streams-lambda-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ resource "aws_lambda_function" "lambda_dynamodb_stream_handler" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "index.handler"
role = aws_iam_role.iam_for_lambda.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
}

data "archive_file" "lambda_zip_file" {
Expand Down
2 changes: 1 addition & 1 deletion eventbridge-lambda-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "aws_lambda_function" "lambda_function" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "app.handler"
role = aws_iam_role.lambda_iam_role.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
}

data "archive_file" "lambda_zip_file" {
Expand Down
2 changes: 1 addition & 1 deletion eventbridge-sns-lambda-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ resource "aws_lambda_function" "lambda_function" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "app.handler"
role = aws_iam_role.lambda_iam_role.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
}


Expand Down
2 changes: 1 addition & 1 deletion kinesis-lambda-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "aws_lambda_function" "sample_lambda" {
function_name = "sample-lambda"
role = aws_iam_role.lambda_role.arn
handler = "index.handler"
runtime = "nodejs16.x" # Change to your preferred runtime
runtime = "nodejs20.x" # Change to your preferred runtime
}
resource "aws_iam_role" "lambda_role" {
name = "lambda-role"
Expand Down
2 changes: 1 addition & 1 deletion lambda-eventbridge-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "aws_lambda_function" "publisher_function" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "app.handler"
role = aws_iam_role.iam_for_lambda.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
}

data "archive_file" "lambda_zip_file" {
Expand Down
2 changes: 1 addition & 1 deletion lambda-function-url-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ resource "aws_lambda_function" "lambda_function" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "app.handler"
role = aws_iam_role.lambda_iam_role.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
}

data "archive_file" "lambda_zip_file" {
Expand Down
2 changes: 1 addition & 1 deletion lambda-sns-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "aws_lambda_function" "lambda_function" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "app.handler"
role = aws_iam_role.lambda_iam_role.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
environment {
variables = {
SNStopic = aws_sns_topic.sns_topic.arn
Expand Down
2 changes: 1 addition & 1 deletion lambda-sqs-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "aws_lambda_function" "lambda_function" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "app.handler"
role = aws_iam_role.lambda_iam_role.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
environment {
variables = {
SQSqueueName = aws_sqs_queue.sqs_queue.url
Expand Down
2 changes: 1 addition & 1 deletion s3-lambda-terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "aws_lambda_function" "lambda_s3_handler" {
source_code_hash = data.archive_file.lambda_zip_file.output_base64sha256
handler = "index.handler"
role = aws_iam_role.iam_for_lambda.arn
runtime = "nodejs16.x"
runtime = "nodejs20.x"
}

data "archive_file" "lambda_zip_file" {
Expand Down