Assume that we want to create a bucket called foo.mydomain.com, and you have already mydomain.com
1. Create the bucket.
- go to AWS console, s3, select the s3 region that you want.
- name the bucket foo.mydomain.com
- save and then select -> click actions-> properties
-> in properties click permissions -> add permissions add VIEW for EVERYBODY (s3 files are unguessable urls)
2. Create the CNAME