jamesingold@home:~$

  • Using Binary Files in AWS Lambda

    I struggled for a few hours trying to run a binary file in an AWS Lambda function. I kept getting “cannot execute binary file”. I tried all sorts of fixes such as giving the file execute permissions and moving the file into the writeable tmp directory in Lambda to reapply...

  • Deconstructing an Object Relationship Mapper (ORM) in Typescript

    Deconstructing a Typescript ORM - Mapping Objects - Part 1 Have you ever wondered how an ORM works? After working through rolling my own lightweight Typescript ORM, I have some answers. We’re not going to talk through building a full ORM in this article but we will set up a...

  • Amazon Cognito MFA with Email Using Lambda Triggers

    Amazon Cognito is a great service for easily getting started with authentication. It also has multi-factor authentication (MFA) right out of the box using a cell phone for SMS or a TOTP (Time-based One Time Password) device such as Authy or Google Authenticator. The requirement that I had was to...

  • Automating Route53 DNS Updates for Blue/Green Deployments (the hard way)

    Blue/Green Architecture A blue/green architecture in some form or fashion is a necessity for highly available systems. This means that you have at least two seperate production environments. The blue one is in use, handling live traffic while the green one is a clone of the production system and ready...