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

**URL:** <https://forum.serverless.com/t/how-to-query-dynamodb-transform-results-and-upload-transformed-results-to-s3/8372>\
**Category:** Serverless Framework\
**Tags:** aws, lambda, dynamodb\
**Created:** [May 26, 2019, 10:43pm UTC](https://forum.serverless.com/t/how-to-query-dynamodb-transform-results-and-upload-transformed-results-to-s3/8372 "2019-05-26T22:43:57Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![smokeyblues](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.serverless.com/smokeyblues/32/3351_2.png) [@smokeyblues](https://forum.serverless.com/u/smokeyblues)\
**Post date:** [May 28, 2019, 1:08pm UTC](https://forum.serverless.com/t/how-to-query-dynamodb-transform-results-and-upload-transformed-results-to-s3/8372/4 "2019-05-28T13:08:27Z")

</div>

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.

---

_[View the full topic](https://forum.serverless.com/t/how-to-query-dynamodb-transform-results-and-upload-transformed-results-to-s3/8372)._
