If you want to use Amazon S3 to share files publicly for your website or to allow downloads, etc, you might want a URL that’s prettier than the default that will be something like this:
I might, for instance, just want to be able to use the URL:
To do that, you can set a CNAME that points to your Amazon S3 bucket.
- First make sure that your bucket name is the same as your CNAME. For instance, if I want the CNAME to be photos.havecamerawilltravel.comotoshelter.com, I’d set the bucket name to photos.havecamerawilltravel.comotoshelter.com.
- Then you need to log into wherever your DNS settings are being maintained (if you haven’t changed it, it’s probably your web host), and create a new CNAME record for that domain. For the example above, I’d then point that CNAME to:
In Cloudflare, for example, it would look like this:
Depending on the settings your DNS provider is using, it can sometimes take a little while (sometimes even a couple of hours) for the new link to work. Some DNS providers are much quicker than that.