Serverless AWS WebRedirect

Rational

Lately, I was looking for 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 totaly different domain and path using minimal efforts and infrastructure.

  • From: asd.zoph.io
  • To: http://app.mailbrew.com/zoph/aws-security-digest-HrkhwqNrwBBk/

Schema

architecture schema

Tradeoff

It does not support https, but you could use the 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.


comments powered by Disqus