kinesis-lambda-terraform: Update runtime to nodejs22.x#2834
Open
kakakakakku wants to merge 6 commits intoaws-samples:mainfrom
Open
kinesis-lambda-terraform: Update runtime to nodejs22.x#2834kakakakakku wants to merge 6 commits intoaws-samples:mainfrom
kakakakakku wants to merge 6 commits intoaws-samples:mainfrom
Conversation
kakakakakku
commented
Sep 17, 2025
| aws = { | ||
| source = "hashicorp/aws" | ||
| version = "~> 4.22" | ||
| version = "~> 5.0" |
Contributor
Author
There was a problem hiding this comment.
note: Older version does not support Node.js 22 runtime. So I updated the version to v5.
| } | ||
|
|
||
| resource "aws_lambda_function" "sample_lambda" { | ||
| filename = "sample_lambda.zip" # Path to your Lambda code ZIP file |
Contributor
Author
There was a problem hiding this comment.
note: The error occurred.
╷
│ Error: reading ZIP file (sample_lambda.zip): open sample_lambda.zip: no such file or directory
│
│ with aws_lambda_function.sample_lambda,
│ on main.tf line 20, in resource "aws_lambda_function" "sample_lambda":
│ 20: resource "aws_lambda_function" "sample_lambda" {
│
╵
| ] | ||
| } | ||
| ) | ||
| } |
Contributor
Author
There was a problem hiding this comment.
note: The error occurred.
╷
│ Error: creating Lambda Event Source Mapping (arn:aws:kinesis:us-east-1:000000000000:stream/sample-stream): operation error Lambda: CreateEventSourceMapping, https response error StatusCode: 400, RequestID: 8dc4328e-eea3-4e1e-b3e5-601eca619082, InvalidParameterValueException: Cannot access stream arn:aws:kinesis:us-east-1:000000000000:stream/sample-stream. Please ensure the role can perform the GetRecords, GetShardIterator, DescribeStream, DescribeStreamSummary, ListShards, and ListStreams Actions on your stream.
│
│ with aws_lambda_event_source_mapping.sample_mapping,
│ on main.tf line 51, in resource "aws_lambda_event_source_mapping" "sample_mapping":
│ 51: resource "aws_lambda_event_source_mapping" "sample_mapping" {
│
╵
| @@ -1,6 +1,6 @@ | |||
| # AWS Kinesis Data Streams to AWS Lambda | |||
| # Amazon Kinesis Data Streams to AWS Lambda | |||
Contributor
Author
There was a problem hiding this comment.
note: Fix to correct service name.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #, if available:
N/A
Description of changes:
Hi😀 Thanks for the useful patterns!
To prevent future deployment issues, I updated the Lambda Node.js runtime version to
nodejs22.x.While testing
kinesis-lambda-terraform, I noticed that the Lambda runtime versionnodejs16.xwas deprecated.https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html
Check
terraform applycompleted successfully and works good.Thank you😀
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.