I have S3 bucket website which has multiple HTML files, now I have created a lambda function and connected it to S3 trigger. Now I have created a lambda function which I want the first indexAll the current HTML file of S3 bucket to my Elastic search domain indices which I have after that if I upload or delete any HTML file in S3 bucket then this lambda function should index it to ES domain. The issue is that I am not able to index my all current HTML also when I upload a new HTML file I am not able to index them to ES domain indices.
Lambda Function to indexall then index one by one . Also I wan to create a test in AWS lambda test for S3 and use event indexAll
to index all file first .
Error is Time out in 3 sec: