Bucket naming issue using periods/full-stops

0

I need help setting up a custom domain for Cloudflare CDN that connects to a storage bucket on AWS. To complete the process, the bucket name has to match the domain where its media will be served from. For instance, if I want to serve media from the domain "cdn.example.com" for the site "example.com", then the bucket name must be "cdn.example.com".

However, when I try to name buckets with full stops/periods, it won't allow it.

Any ideas? TIA

GJF1
已提問 10 個月前檢視次數 198 次
3 個答案
0

Many thanks for the quick reply. I'm using the web interface in light sail "Storage" / identify your bucket:

Enter image description here

GJF1
已回答 10 個月前
0

Could you show or explain how you're trying to create the bucket? Console? CLI? SDK? CDK? I've just created a bucket that is a valid DNS hostname with no issues at the command-line:

aws s3 mb s3://www.domain.com - just an example.

Edit given other detail: You may be running into a limitation of the Lightsail console interface; perhaps use the AWS console directly to configure S3?

profile pictureAWS
專家
已回答 10 個月前
0

Hi, thank you for reaching out, Lightsail bucket does not support dns style bucket name, does Cloudflare offer any alternatives to using dns-style bucket names? Amazon S3 do support dns style bucket names, however it is not recommended because with that you can't use virtual-host-style addressing over HTTPS, unless you perform your own certificate validation. For more details, please reference this doc: https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html

AWS
yujie
已回答 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南