added 24 characters in body
Source Link
Glasnhost
  • 621
  • 4
  • 11
  • 21

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
  • a CNAME record with NO alias
  • a CNAME record with alias
    • name: cnamealias.mybucketmytestbucket.com
    • alias target: cname.mybucketmytestbucket.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...

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.mybucket.com
    • alias target www.mybucket.com.
    • RESULT: 404, NoSuchBucket, The specified bucket does not exist
  • a CNAME record with NO alias
    • name: cname.mybucket.com
    • value: www.mybucket.com
    • RESULT: 404, NoSuchBucket, The specified bucket does not exist
  • a CNAME record with alias
    • name: cnamealias.mybucket.com
    • alias target: cname.mybucket.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...

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...

Source Link
Glasnhost
  • 621
  • 4
  • 11
  • 21

How to point route53 records to bucket for *any*subdomain?

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.mybucket.com
    • alias target www.mybucket.com.
    • RESULT: 404, NoSuchBucket, The specified bucket does not exist
  • a CNAME record with NO alias
    • name: cname.mybucket.com
    • value: www.mybucket.com
    • RESULT: 404, NoSuchBucket, The specified bucket does not exist
  • a CNAME record with alias
    • name: cnamealias.mybucket.com
    • alias target: cname.mybucket.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...