So far in our book, we've introduced many important concepts about how to think in serverless environments, and we explored the fundamentals. In this chapter, we will implement a vast majority of our example forum application, endpoints for user creation, post creation and reading, and more importantly, we will persist our data in a data storage layer. The data storage engine we picked for this project is DynamoDB, the schemaless database engine of AWS. In this long chapter, we will cover the following topics:
- Creating DynamoDB tables using CloudFormation
- Injecting environment variables to Lambda functions
- Creating endpoints with more sophisticated input and output types