title: AWS Lambda : Calling the invoke API action failed with this message: Network Error
body: <p>I have created a lambda that iterates over all the files in a given S3 bucket and deletes the files in S3 bucket. The S3 bucket has around 100K files and I am selecting and deleting the around 60K files. I have set the timeout for lambda to max (15 minutes) timeout value. The lambda is consistently returning "network error" after few minutes though it seems to run in the background for sometime even after the error is returned. How can get around this?</p>