For a Serverless project that 301s from some non-canonical name to a canonical name. It has a rather extensive CloudFormation template in the serverless.yml file for CloudFront.
You must get your ACM based certs from us-east-1. Don't ask.
This project uses the serverless framework to deploy:
- CloudFront Distribution ( with SSL termination )
- backed by an API Gateway
- backed by a python AWS lambda function that sends back
HTTP 301
to a canonical name