2

How do I mask https://s3.amazonaws.com/BUCKET as a subdomain (static) using dns entries?

My Amazon bucket name is static.gamer-source.com

CNAME entry is: static CNAME static.gamer-source.com.s3.amazonaws.com. (this is setup through ENOM's host record manager)

3

Buckets are accessible using <bucket_name>.s3.amazonaws.com. Amazon provides a few options on how to access these resources using alternate means. Details are provided in the S3 docs.

| improve this answer | |
  • When I do that, <bucket_name>.s3.amazonaws.com turns into <bucket_name>.s3.amazonaws.com. with an extra period which breaks it – Webnet Nov 14 '10 at 23:14
  • 3
    @Webnet That period is actually the DNS system signifying an absolute domain name. Your CNAME resolves fine for me. – Rob Olmos Nov 14 '10 at 23:40
  • Looks like static.gamer-source.com is working just fine. I'm getting an Access Denied error from AWS. – EEAA Nov 14 '10 at 23:40
  • Bah you're right, now that I've stepped away for a while it's resolving. – Webnet Nov 15 '10 at 0:20
6

In addition to what ErikA said, it's worth noting that you can't use SSL with a custom hostname like yours. Since your question included HTTPS in the URL, I assume that's something you're looking to do.

Since Amazon doesn't have your SSL certificate, they can't authenticate HTTPS traffic for your domain.

More info: http://shlomoswidler.com/2009/08/amazon-s3-gotcha-using-virtual-host.html

| improve this answer | |
  • Is this still the case in 2015? – Chris Harrison Jun 16 '15 at 10:00
  • 1
    @ChrisHarrison Though late,but yes. You need to upload your certificate files to AWS via CLI (no other way) and configure it to work for a custom domain – KillABug May 12 '16 at 11:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.