Rationale

Lately, I was looking for a small automation to deploy a simple web redirect for a domain name hosted on Amazon Route 53. I didn’t find anything relevant, so I’ve decided to do it by myself. The goal was to have a subdomain redirect to a totally different domain and path using minimal effort and infrastructure.

Schema

architecture schema

Tradeoff

It does not support https, but you can use http as an entrypoint, and then redirect traffic to https as needed.

Solution Repository

I think this approach could help someone else, so I’m sharing it with you. Don’t hesitate to comment and enhance it as you like.

That’s all folks!

zoph.