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
gefragt vor 10 Monaten198 Aufrufe
3 Antworten
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
beantwortet vor 10 Monaten
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
EXPERTE
beantwortet vor 10 Monaten
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
beantwortet vor 10 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen