Announcing SAM Helper a simple way to describe your AWS Web Socket API Gateway

David Sandor
Build Succeeded
Published in
2 min readMar 29, 2019

--

So if you have read through my previous articles (here, and here) discussing AWS Web Socket API Gateways and how to configure them you will see an evolution of complexity. Today I hope to show you a new way to do this that takes ALL of the frustration and complexity out of building an event driven web socket api with AWS API Gateway.

Check out aws-websocket-sam-helper. Instead of building out a template.yaml file that is thousands of lines long you can simply describe your lambda function with a simple json file and the rest will be done for you.

The project I referenced above ws-sam-helper-example shows you how to use the SAM Helper.

Here is an example of documenting a Lambda function that will handle a Web Socket route with the key get-user.

{
"functionName": "GetUserFunction",
"routeKey": "get-user",
"apiId": "ApiBuiltBySamHelper",
"handler": "user/index.getHandler"

--

--