[zrzka@home] % _

Recent Posts

AWS Lambda & API Gateway Error Handling

published on
It’s fragile and kind of terrible. Let’s look at it. We have a function named lambda. It has one argument named action (enum with allowed values data, exception or timeout). First thing we would like to do is to validate input via schema. Then we would like to return custom error message (and status code) if it’s invalid or do other things based on the action argument value. Here’s the code, just to demonstrate how it works. Read More...

Categories

all (7)

Tags

api-gateway (2) aws (4) cloud-formation (1) ec2 (1) ipad (1) lambda (2) performance (1) prototyping (1) python (1) pythonista (1)