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
asked 9 months ago191 views
3 Answers
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
answered 9 months ago
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
EXPERT
answered 9 months ago
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
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions