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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则