exporting is tricky when the data is large. ES restricts a query result to return 1000 results, there's a scroll API that can be used for doing this - but it can no longer be a serverless app at that point.
We have this feature in the version of dejavu used in appbase.io.