see more information here: https://dev.to/aws-builders/example-how-to-analyze-dynamodb-item-changes-with-kinesis-and-athena-created-with-terraform-g2h
The lambdas are created with a module from https://serverless.tf/
Docs: https://github.com/terraform-aws-modules/terraform-aws-lambda
Examples: https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/examples
See more for serverless here https://serverless.tf/#aws-serverless