Configuring my subdomains to use the static files hosted on AWS S3

Hi, I have my website domain name setup with a wildcard DNS record. I am architecting in a way that when a user visits any one of my subdomain say “subdomain.example.com” the static files hosted on a bucket in my AWS S3 should be served. I am thinking of setting up a reverse proxy with nginx or Traefik but I don’t whether this might be the right approach

Check below links.

Virtual hosting of buckets - Amazon Simple Storage Service

dns - Amazon S3: Static Web Sites: Custom Domain or Subdomain - Stack Overflow

amazon s3 - AWS static website - how to connect subdomains with subfolders - Stack Overflow

I use netlify for static hosting.

https://kalaignar.freetamilebooks.com/
https://thopa.freetamilebooks.com/
https://jeeva.freetamilebooks.com/

are running on netlify. it is so simple there.

Thank you sir, for the time you took to collect the resources.

I can’t use netlify, because I am making a platform like netlify which will allow users to static host their site.

Then build yout own application with apache as frontend.
built it as cloud agnostic application and to be run from any linux server.

By doing this, no need to rely on s3 and no need to hit by s3 limitations.