This project illustrates how to setup a simple analytics service for CloudFront. It uses lambda, kinesis firehose, and Athena to enable you to capture page views using a novel strategy described in How Bear does analytics with CSS.
The primary goal of this project was to explore a few different options for analytics, and to learn more about CloudFront, Lambda, and Kinesis Firehose.
This includes a few solutions I wanted to dig into:
- Cloudfront with Lambda Function URL integration, based on Amazon CloudFront now supports Origin Access Control (OAC) for Lambda function URL origins.
- Kinesis Firehose with Lambda Transform and Dynamic Partitioning Dynamic Partitioning in Amazon Data Firehose.
This application is released under Apache 2.0 license and is copyright Mark Wolfe.