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개 답변
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

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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인