I have an S3 bucket called www.mybucket.com I have an A record: name = www.mybucket.com. It answers well with the index.html contained in the bucket.
Now I want to send any subdomain to that bucket.
I tried first with specific subdomains:
- an A record ALIAS
- name: alias.mytestbucket.com
- alias target www.mytestbucket.com.
- RESULT: 404, NoSuchBucket, The specified bucket does not exist
- a CNAME record with NO alias
- name: cname.mytestbucket.com
- value: www.mytestbucket.com
- RESULT: 404, NoSuchBucket, The specified bucket does not exist
- a CNAME record with alias
- name: cnamealias.mytestbucket.com
- alias target: cname.mytestbucket.com. (the only option offered...)
- RESULT: 404, NoSuchBucket, The specified bucket does not exist
no more ideas...
The final goal will be to redirect all subdomains to the bucket www.mybucket.com. But also ability to send different subdomains to different buckets will be good...