During a production launch I need one subdomain, beta.foo.bar.com, to begin redirecting all requests to foo.bar.com.
AWS suggests using an S3 bucket set up for static website hosting and configured to redirect all requests to another domain. This works fine for http, but https requests to beta.foo.bar.com time out since S3 cannot seem to handle https.
Both DNS records are A Aliases to CloudFront distributions which in turn have their own CNAME records that ultimately point to ELBs. This was set up by someone who's now gone and I confess I don't yet know enough about CloudFront distributions/origins. Is there some possible combination of CloudFront distribution/origin/CNAME that can handle http, https, and redirection?
Note: The app itself can receive http but rewrites to https with an ebextension; it may be possible to make the redirect happen there but I'd much prefer to resolve it on AWS.