What would cause the Cloudwatch to Opensearch lambda to timeout?

0

I'm setting up what should be a simple integration from Cloudwatch logs into a basic Opensearch domain i just created. The lambda is timing out with no further indication of what is going on. I've searched various articles and there is no description of this particular problem. Any suggestions as to what I should even look at?

The cloudwatch logs and the opensearch domain are in the same account... this should be the simplest use case of all and should just work!

已提問 1 年前檢視次數 431 次
2 個答案
1

Are you using a VPC-enabled Lambda function to stream logs to the OpenSearch cluster? If so, have you verified that the Lambda function has access to the cluster? Depending on the type of security controls in place (e.g., fine-grained access control), there are different configurations you can check. The following documentation has a flowchart you can follow to troubleshoot the timeout issue.

Additionally, I recommend adding verbose logging in your Lambda function code to help you understand where it is timing out if there are multiple logics being performed.

AWS
Taka_M
已回答 1 年前
1

Make sure that your Lambda function is idempotent and you should try initialize your function's static logic outside of the function handler. Using CloudWatch Logs for Lambda to your investigation viewing all logs generated by your function's code and identify potential issues. "https://aws.amazon.com/premiumsupport/knowledge-center/lambda-troubleshoot-invocation-timeouts/"

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南