# S3 upload bucket, cdn url and bucket name in CNAME

**URL:** <https://meta.discourse.org/t/s3-upload-bucket-cdn-url-and-bucket-name-in-cname/42549>\
**Category:** Product Support\
**Created:** [14 באפריל,‏ 2016,‏ 9:40am UTC](https://meta.discourse.org/t/s3-upload-bucket-cdn-url-and-bucket-name-in-cname/42549 "2016-04-14T09:40:35Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![daath](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daath/32/115536_2.png) [@daath](https://meta.discourse.org/u/daath)\
**Post date:** [14 באפריל,‏ 2016,‏ 9:40am UTC](https://meta.discourse.org/t/s3-upload-bucket-cdn-url-and-bucket-name-in-cname/42549/1 "2016-04-14T09:40:35Z")

</div>

Continuing the discussion from [S3 Upload with Vanity Domains](https://meta.discourse.org/t/s3-upload-with-vanity-domains/7359/9):

I have some questions!

**1** : I am running out of space on my droplet because of uploads, so I want to use S3 for my uploads.

I might have missed something, but [in the S3 documentation](http://docs.aws.amazon.com/AmazonS3/latest/dev/VirtualHosting.html#VirtualHostingCustomURLs):

> _Because Amazon S3 sees only the original host name `www.example.com` and is unaware of the CNAME mapping used to resolve the request, the CNAME and the bucket name must be the same._

But in the discourse settings in “s3 upload bucket” it says “_must be lowercase, no periods, no underscores._” - and it won’t let you save the bucket name. I can see that there is an “s3 cdn url” to put the vanity name - but I don’t get how I am supposed to set it up.

**2** : When I get it to work - will Discourse move all my existing images to S3 or do I have to do something?

Thanks in advance! 😃

---

_[View the full topic](https://meta.discourse.org/t/s3-upload-bucket-cdn-url-and-bucket-name-in-cname/42549)._
