Hedgerules is Hugo Edge Rules for AWS CloudFront.
Hedgerules makes hugo deploy work seamlessly with CloudFront and S3.
It generates the CloudFront Functions and Key Value Store entries needed to handle
redirects, directory indices, and custom headers —
features you get for free with Netlify,
but have to build yourself on AWS.
I built this because I wanted more logs than Netlify would give me for free. AWS offers CloudWatch for real time dashboards and up-to-the-minute logs, and Athena for long-term log analysis.
But deploying a site to S3 and CloudFront leaves much to the user compared to Netlify.
Netlify offers _headers and _redirects files,
but AWS is more limited and requires using CloudFront functions to achieve all the functionality Netlify offers.
Hedgerules handles the deployment of these CloudFront functions for you.
Check out the Getting Started docs, or see how it compares to other solutions.