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!

2 Answers
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
answered a year ago
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions