Reduce the frustration and the time it takes to start writing Lambda functions

Powertool in action
Powertool in action
Photo by Christopher Burns on Unsplash.
  • Googling for event payload structures.
  • Unpacking the contents and calling json.loadsto turn strings into dicts.


Secure your local dev server to give you access to restricted features, such as device APIs.

  • Generate a certificate for localhost
  • Add the certificate to keychain
  • Update server.js to use the certificate and require https
  • Update package.json scripts

Generate a Certificate for localhost

openssl req -x509 -out localhost.crt -keyout localhost.key \
-days 365 \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
  • req the command for…


Building modern architectures can be a hailstorm of difficult decisions. Using Principles can simplify the decision-making process and lead you to better solutions. These are my principles.

picture of a steel bridge
picture of a steel bridge
Photo courtesy of the Author

TL;DR

  1. Serverless First. Cloud-First. AWS First.
  2. Configure First. Write Code Second.
  3. Simplicity is better than complexity.
  4. Massively Scalable. Event-Driven.
  5. What we build will fail. We embrace those failures.
  6. Services are modular, isolated and single purpose.
  7. Services provide an interface and are ignorant of how they are consumed.
  8. Change is sought but challenged.
  9. Business logic is ephemeral, preferably stateless and computed late.
  10. Principle of Least Privilege.

Lacking Principles


If you’ve ever bought a Custom Domain, chances are you wanted to have email addresses on it. Here’s a really easy way to set them up, using AWS.


Hurray, you’ve got a MacBook! Now, let’s get it working like a charm 👩🏻‍💻

TL;DR

Upgrade OS


Turbo-charge your Lambda functions by sending messages in batches

Photo by Greg Farrow

Scope

  • What is batching?
  • Performance: Just…


Writing for me is a hobby, not a profession; this is my experience of starting to write on Medium.


A guide to setting up a CI/CD pipeline from scratch with almost no effort or prior knowledge.

All those tools, all that tech, where do I even start!?

Close up photo of a Ford Mustang’s headlights
Close up photo of a Ford Mustang’s headlights
Photo by Greg Farrow

What is Continuous Integration (CI) and Continuous Delivery (CD)?


AWS CodeCommit is a Git-based, fully managed repository service perfect for everything from hobby-projects to Enterprise projects.

A queue of Ford Mustangs
A queue of Ford Mustangs
Photo by Greg Farrow

Create a new CodeCommit Repository


Use this quick start guide to install AWS CLI and create a user profile in minutes.

Image of a command line terminal window with “aws help” typed in.
Image of a command line terminal window with “aws help” typed in.
Let’s get started!

Install with Pip

pip3 install awscli --upgrade --user

Greg Farrow

Principal Technical Architect @ ResponseTap (AWS Certified). Serverless First.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store