Setting up Cloudfront as a reverse proxy for domain redirection

To solve the problem currently we are using an A record alias to cloudfront