https://github.com/iliana/staticstat
https://github.com/iliana/staticstat
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/iliana/staticstat
- Owner: iliana
- License: mit-0
- Created: 2019-05-11T22:57:28.000Z (about 6 years ago)
- Default Branch: mistress
- Last Pushed: 2019-05-12T18:41:33.000Z (about 6 years ago)
- Last Synced: 2025-01-11T20:35:07.460Z (5 months ago)
- Language: Rust
- Homepage: https://linuxwit.ch/blog/2019/05/webscale-website-webstats/
- Size: 22.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# staticstat
This is the Rube Goldberg machine I use to get hit counts for my static Netlify-hosted websites.
I haven't tested all the corner cases of the CloudFormation stack, and the execution policy on the log partitioning Lambda function is a bit wide. Please run this stack in its own AWS account ([AWS Organizations](https://aws.amazon.com/organizations/) helps you here), and **use at your own risk**! Although you can run this stack on smaller websites for pennies a month, do not blame me for your AWS bill.
You'll need to build the log partitioning function yourself; install Docker, `cd lambda-partition-log; ./build.sh`, and copy to S3. The S3 bucket and key are parameters to the stack.
Because the stack manipulates a CloudFront distribution, it can take half an hour to create, and must be created in `us-east-1`.