A lot of the code involving the AWS SDK can be written to be much shorter. Look at the following links for more information: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/using-async-await.html https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html https://docs.aws.amazon.com/lambda/latest/dg/nodejs-handler.html https://discord.com/channels/535222908818030613/721761733575835699/841866248950120468