aws-samples / siem-on-amazon-opensearch-service

A solution for collecting, correlating and visualizing multiple types of logs to help investigate security incidents.
MIT No Attribution
573 stars 189 forks source link

fix: Adjust SQS visibility timeout to appropriate value #451

Open raihalea opened 4 months ago

raihalea commented 4 months ago

Issue #, if available:

Description of changes:

When connecting SQS with Lambda, it is recommended to set the visibility timeout to six times the Lambda function's timeout value. The visibility timeout should be at least longer than the Lambda function's timeout multiplied by the number of retries.
https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html

(JP) SQSとLambdaを接続する場合にはLambdaのタイムアウトの6倍の値を可視性タイムアウトにすることが推奨されています。 少なくともLambdaのタイムアウト*試行回数より長い可視性タイムアウトを取る必要があります。

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.