Member-only story

5 NodeJS Recipes to Improve Your AWS Development

Ifitzsimmons
5 min readJan 27, 2021

--

Useful Node/AWS recipes you can use again and again.

Floriana / Getty Images

As I work on AWS cloud-native applications, there are certain NodeJS “recipes” I find myself leaning on time and time again. It occurred to me the other day that I should record these somewhere for my own reference, but then I thought, why be greedy?? I hope some of these recipes will provide a nice reference for anyone who spends a lot of time developing AWS apps with NodeJS/TypeScript.

These recipes were built with the Lambda runtime environment in mind, which is why they are written in commonjs instead of ES6 or TypeScript. If there’s enough interest, I’ll make a post explaining how to compile your TypeScript and ES6 Lambda function code into commonjs functions.

  1. Configure SDK Credentials
  2. Use Array.map() To Create a List of Promises
  3. Recursive Pagination
  4. Iterative Pagination
  5. Exponential Backoff with Jitter

Configure SDK Credentials

Okay, hear me out. I know this sounds silly, but I often find myself scouring AWS documentation so that I can configure my local credentials with the aws-sdk.

--

--

No responses yet