I want to setup S3 static website and connect with my domain (for example domain: example.com).
In this S3 bucket I want to create one particular folder (name content) and many different subfolders with in, then I want to connect these subfolders with appropriate subdomains, so for example
- folder content/foo should be available from subdomain foo.example.com,
- fodler content/bar should be available from subdomain bar.example.com.
Any content subfolder should be automatically available from subdomain with that same prefix name like folder name. I will be grateful for any possible solutions for this problem. Should I use redirection option or there is any better solution? Thanks in advance for help.