Problem
I have a site running on a 'serverless' AWS Lambda function. Route53 routes requests to the API Gateway which connects to the Lambda function.
The problem with this is that you can't setup traditional server redirects.
Example
As an example, I followed this question/answer to route http://<my_domain>.com to https://www.<my_domain>.com, I'm using an A record alias to S3 bucket that is setup as a Static site redirect to https://www.<my_domain>.com.
Question
How can I get https://<my_domain>.com to redirect to https://www.<my_domain>.com in a serverless environment like Lambda?