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
feita há 10 meses198 visualizações
3 Respostas
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
respondido há 10 meses
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
ESPECIALISTA
respondido há 10 meses
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
respondido há 10 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas