Member-only story
5 NodeJS Recipes to Improve Your AWS Development
Useful Node/AWS recipes you can use again and again.
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.
- Configure SDK Credentials
- Use
Array.map()
To Create a List of Promises - Recursive Pagination
- Iterative Pagination
- 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
.