Serverless: Up and Running
What is serverless hosting? In 2018, the requirement for a dedicated server running 24/7 seems a bit antiquated. With the invention of AWS Lambda, it is now possible to own and maintain an API application that only exists on-demand, and only costs resources based on what it uses while running. It’s never been cheaper to run an API thanks to Lambda. To do that, however, there are a handful of hoops that need to be jumped through to get a working application. For the sake of this blog, the tools that will be used are AWS SAM, CloudFormation, API Gateway, Lambda and DynamoDB. With this toolsuite we’ll be able to get a fully functioning API with minimal setup and minimal cost. Config Getting started with AWS SAM is pretty easy. For reference, SAM stands for Serverless Application Model, or the way that AWS has decided serverless applications should run. With this model, there’s lots of documentation and helpful links on how to get a serverless application running in production. The base config for a SAM template