Using the AWS SDK version 3, how to read a file of S3 bucket from a nodejs based lambda? I'm creating this for my self reference in the future.
I use middy middleware in my lambdas. Hence, used the same template. Please note that it's optional. Similarly csvtojson is also optional in the scope of this discussion.
There are a couple of solutions, the solution that I'm showing is using node-fetch npm.