neverendingqs

Hobbyist software developer by night.

Using dotenv with the Serverless Framework

Apr 27, 2021

In my previous post, I advised that the serverless-dotenv-plugin will no longer be able to load environment variables in time to resolve env variables in your service files (e.g. serverless.yml)....

AWS Lambda: Always Allocate (At Least) 1024 MB

Apr 16, 2021

When using AWS Lambda, you are billed for every millisecond your Lambda function takes to run, depending on how much memory you have allocated. A function configured for 256 MB...

Major changes to serverless-dotenv-plugin

Mar 30, 2021

The Serverless Framework has a new variables engine starting in serverless@2.26.0. This is part of a larger initiative by the Serverless Framework team that will come into effect in serverless>=3.0.0....

Getting the Request ID of a Lambda Invocation when Using Promises With the AWS SDK

Aug 31, 2020

Every invocation of an AWS Lambda function is associated with a request ID. Searching the CloudWatch logs with the request ID is the quickest way to find the logs of...

Using Proxy's get() Trap for Easy Defaults and Even method_missing!

Jul 23, 2019

Proxy’s handler.get() trap is very powerful. Here are some examples of what it can do. Counter Need to keep a counter of something? The following example shows how many of...

Waste GUIDs Even Faster with Waste Some GUIDs!

Jul 8, 2019

What can be better than being able to indulge in your deepest and most base desire of wasting GUIDs one at a time? The ability to waste multiple GUIDs at...

API Gateway WebSocket APIs with the Serverless Framework

Jul 1, 2019

I recently built a web application in JavaScript that leveraged WebSockets to display live data from a server. I used AWS API Gateway WebSocket APIs in the back-end and the...

Express.js on Netlify

Sep 8, 2018

Netlify started off as a service for hosting static websites. Not only was it an amazing service from the start, managing the hosting infrastructure so you can focus on putting...

Promises in Serial Using Reduce

Dec 2, 2017

In an earlier post, I showed how to run a series of promises in serial and in batches of 5 (or any arbitrary batch size). Today, I want to show...

S3 Bucket Policy - NotPrincipal and Lambda Functions

Sep 24, 2017

AWS S3 bucket policies have a handy NotPrincipal element that allows you restrict actions to specific principals. For example, the following allows you only allow deletes from two specified roles:...

Promises in Serial

Sep 3, 2017

A while back, I discovered I needed to run a series of promises in serial to avoid flooding an external service with too many requests. Given a function that calls...

Switch to Jekyll

May 29, 2017

This site is now powered by Jekyll and Netlify! Using Jekyll allows me to convert posts (still written with Markdown!) into static pages which Netlify can host. Details: Posts were...

Ensure All Nock Interceptors Are Used

Mar 13, 2017

nock is a Node.js testing library that mocks HTTP calls, allowing one to test code that makes HTTP requests without actually making any network calls. However, HTTP mocks are applied...

String Utilities UI Powered by Lodash

Jan 16, 2017

I had a scenario at work for converting some camel case (e.g. camelCase) words into kebab case (e.g. kebab-case), and realized I had some trouble finding a converter online. Some...

Tech I Use: EditorConfig

Jan 2, 2017

“Tech I Use” is a series of blog posts that highlights some of the technologies I use for personal projects. EditorConfig is a project that aims to enforce a standard...

Running npm Commands on Netlify Deployment

Dec 26, 2016

In a previous post, I demonstrated how to set up Netlify with a static website. However, we skimmed over two fields: Publish directory and Build command. As Build command suggests,...

Tech I Use: Netlify

Dec 17, 2016

“Tech I Use” is a series of blog posts that highlights some of the technologies I use for personal projects. Netlify is a Platform-as-a-Service that hosts front-end applications for you....

Tech I Use: Heroku

Dec 11, 2016

“Tech I Use” is a series of blog posts that highlights some of the technologies I use for personal projects. Heroku is a Platform-as-a-Service (PaaS), abstracting the infrastructure layer and...

Ghost Init!

Dec 2, 2016

Welcome to blog.neverendingqs.com! I have been looking for some time to share some of my knowledge and experience as a software developer to the rest of the world, and I’m...

Software Developer | Lifelong Learner. neverendingqs.com