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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠