I have an S3 bucket thats deployed on a domain trough CloudFront and I also have a lambda function that should also get requests from the same domain as the FE and I have no idea how I can acheave this in AWS.
I've tried Lambda@Edge and add it to the same CloudFront distribution but I don’t know how to config when the lambda runs.