Notifications With Go, Lambda and SNS Traces and logs help us dig into requests, responses and errors, but they don’t alert us when an error occurs. For that, we need notifications. Email and SMS notifications are easy with the Simple Notification Service (SNS). Go Code First we introduce a notification middleware – a function that takes and returns a function of the same definition. This one takes a handler function, calls it, sends an SNS notification if it returned an error then returns its return values.

Read more →

Per-Function Policies With Lambda, IAM and SAM Building an application as a constellation of functions offers a huge security advantage. Every function can have its own set of environment variables and its own policy over what other resource APIs it has permission to use. AWS Config Consider our worker and user functions. The user functions have policies that grants them permission to manage records in a single DynamoDB table via the DynamoDBCrudPolicy.

Read more →