Interested in learning more about serverless AWS? Check out my Guide to Building with Serverless AWS (only pay what you want)
When I was first learning about AWS lambda and API Gateway (serverless), I spent quite a bit of time searching around for help and template snippets to help me build a CloudFormation template.
I have seen a lot about the
serverless framework and I know that there are easier ways to get into building serverless infrastructure on AWS, but sometimes learning what is happening behind the scenes helps me learn and understand the concepts better.
In order to create the documentation that I wish I had while learning this stuff, I decided to create a basic CloudFormation template to spin up a serverless API on AWS.
The idea behind this is that you can upload this template to AWS, tell CloudFormation to create a stack with it, and be ready to start developing your API without having to worry about creating basic infrastructure.
Of course there is additional knowledge that you would need to gather like how to upload code to your lambda function, create new methods and resources on your API Gateway, etc.
It’s quite likely that I will post more in the future about how to do those things, but for now, I hope that this can be a good foundation for others to build off of while starting their serverless and AWS journey.
Again, here is the link to the starter template api-gateway-and-lambda.yml.Categories: ops | aws