-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
Feature to update maximum_batching_window_in_seconds in aws lambda event source mapping for SQS event source type #16518
Feature to update maximum_batching_window_in_seconds in aws lambda event source mapping for SQS event source type #16518
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @with-joy 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @with-joy for this PR! looks great so far 👍 just a couple comments and request to also update the resource's documentation in lambda_event_source_mapping.html.markdown
as well as it currently is targeted towards streaming resources e.g.
The maximum amount of time to gather records before invoking the function, in seconds (between 0 and 300).
Records will continue to buffer (or accumulate in the case of an SQS queue event source) until either `maximum_batching_window_in_seconds` expires or `batch_size` has been met.
For streaming event sources, defaults to as soon as records are available in the stream.
If the batch it reads from the stream/queue only has one record in it, Lambda only sends one record to the function.
Output of acceptance tests:
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (45.41s)
--- PASS: TestAccAWSLambdaEventSourceMapping_SQSBatchWindow (66.68s)
--- PASS: TestAccAWSLambdaEventSourceMapping_StartingPositionTimestamp (71.71s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_basic (82.33s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_disappears (86.47s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisDestinationConfig (94.02s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_removeBatchSize (94.10s)
--- PASS: TestAccAWSLambdaEventSourceMapping_BatchWindow (94.78s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (95.49s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqsDisappears (99.38s)
--- PASS: TestAccAWSLambdaEventSourceMapping_changesInEnabledAreDetected (99.68s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRecordAgeInSeconds (105.76s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttempts (106.70s)
--- PASS: TestAccAWSLambdaEventSourceMapping_ParallelizationFactor (107.48s)
--- PASS: TestAccAWSLambdaEventSourceMapping_BisectBatch (108.67s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (109.05s)
Thank you @anGie44 for all the suggestions, was really helpful 🙏🏾 --- PASS: TestAccAWSLambdaEventSourceMapping_SQSBatchWindow (122.02s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisDestinationConfig (147.40s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisBatchWindow (162.85s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (168.87s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRecordAgeInSeconds (174.72s)
--- PASS: TestAccAWSLambdaEventSourceMapping_BisectBatch (192.91s)
--- PASS: TestAccAWSLambdaEventSourceMapping_StartingPositionTimestamp (200.35s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_disappears (202.28s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (209.64s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_basic (210.29s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttempts (214.77s)
--- PASS: TestAccAWSLambdaEventSourceMapping_ParallelizationFactor (218.39s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (220.52s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_removeBatchSize (229.09s)
--- PASS: TestAccAWSLambdaEventSourceMapping_changesInEnabledAreDetected (251.29s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqsDisappears (255.15s)
PASS
ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates @with-joy , look great 🚀
Output of acceptance tests:
--- PASS: TestAccAWSLambdaEventSourceMapping_BisectBatch (204.35s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisBatchWindow (208.77s)
--- PASS: TestAccAWSLambdaEventSourceMapping_KinesisDestinationConfig (213.08s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRecordAgeInSeconds (213.65s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttempts (200.18s)
--- PASS: TestAccAWSLambdaEventSourceMapping_MaximumRetryAttemptsZero (228.37s)
--- PASS: TestAccAWSLambdaEventSourceMapping_ParallelizationFactor (213.56s)
--- PASS: TestAccAWSLambdaEventSourceMapping_SQSBatchWindow (157.08s)
--- PASS: TestAccAWSLambdaEventSourceMapping_StartingPositionTimestamp (135.33s)
--- PASS: TestAccAWSLambdaEventSourceMapping_changesInEnabledAreDetected (165.21s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_basic (206.03s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_disappears (126.40s)
--- PASS: TestAccAWSLambdaEventSourceMapping_kinesis_removeBatchSize (212.73s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqsDisappears (161.15s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_basic (197.35s)
--- PASS: TestAccAWSLambdaEventSourceMapping_sqs_withFunctionName (101.37s)
This has been released in version 3.20.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Relates OR Closes #16503
Release note for CHANGELOG:
Output from acceptance testing: