Given a vanity/campaign URL, this is the simplest way to provide a server side redirect with 0 infrastucture overhead:
- Create a bucket
- Open GET access to the bucket as shown below in
bucket-policy-example.json
(more info available in AWS S3 Static Hosting docs) - Enable website hosting on the bucket
- Under
Edit Redirection Rules
, add XML similar torouting-rules.xml
below. Read more about Routing Rules for additional options. - Assign an A record in Route 53 by aliasing the bucket.