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)

2 Answers 2

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.

4
  • When I do that, <bucket_name>.s3.amazonaws.com turns into <bucket_name>.s3.amazonaws.com. with an extra period which breaks it
    – Ben
    Nov 14, 2010 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, 2010 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, 2010 at 23:40
  • Bah you're right, now that I've stepped away for a while it's resolving.
    – Ben
    Nov 15, 2010 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

2
  • Is this still the case in 2015? Jun 16, 2015 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, 2016 at 11:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .