How to query dynamoDB, transform results, and upload transformed results to s3?

Thanks! That did the trick. I had tried adding await keyword in front of the s3.upload but I added async in front of the function calling it instead of adding .promise() at the end. I’m still trying to wrap my mind around promises.

I’m still not getting any of the log output that I put in s3.upload call but I assume that’s because its still wrapped in the promise somehow. The file notes.csv shows up in the s3 bucket though, which is what I want it to do so thanks.