From Ever changing code
AWS service for CloudFront distribution Lambda at edgde allows to run arbitrary code to manipulate HTTP requests and responses, it's common to also manipulate headers, Tamas website has a good article about it. It also serves a good reference to what I also deployed to manipulate headers all with Terraform.
- How CloudFront routing works
- How to use CloudFront Functions to change the origin request path The new way to run code on the edge provides many benefits over Lambda@Edge