I am using the following architecture
Cloudfront is in the front of the APIGateway and APIgateway has Lambda proxy as the endpoint.
When a user request for an