"Bucket name already exists", but it is not listed on the S3 Mgmt Console

0

Hi there, i am facing a weird issue which i need input from you guys. I am trying to create a S3 bucket with the intention of using it for DNS CNAME redirection, method which i have used many times before. Today, when i tried to create a new S3 bucket, it gives me an error.. "Bucket name already exists". Ironically, it is not listed on the S3 Management Console unlike others which i have created. I am really puzzled. I am not certain if anyone have created it before and removed it. Any ideas on how can i validate if it perhaps have been created before or something ?

질문됨 6년 전6550회 조회
3개 답변
0

Pull up a web browser and go to http://example-bucket.s3.amazonaws.com, substituting your desired bucket name for example-bucket. If you get any response other than an XML error that says NoSuchBucket, then the bucket name is already taken.

The bucket namespace is global (not per-account), so if someone else already has a bucket by that name, you won't be able to create it.

The workaround is to create a bucket with a different name, configure it the way you want for the redirect, make a note of the bucket's web site hosting endpoint, create a CloudFront distribution, configure the origin domain name as the web site hosting endpoint for the new bucket, configure the CloudFront Alternate Domain Name as your original name (the hostname you want to be able to redirect), and then point the DNS to the assigned CloudFront endpoint. This configuration allows you to have a bucket whose name does not need to match the CNAME record, because CloudFront handles the remapping automatically. (These steps probably sound complicated, but once you've done it, it all makes sense).

An advantage of this solution is that you can also associate a certificate from Amazon Certificate Manager so that https access to the hostname you want to redirect works, as well as http. (When you use S3 directly, the redirection feature only supports http).

sqlb0t
답변함 6년 전
0

@AWS-staff: This global namespace thing is absurd. a) Remove it; Why should we have to compete with the entire world for names for our internal products? We don't have to compete for EC2 instance names, or IAM usernames, etc. This is a confusing exception. b) Until you remove it, please clearly state this requirement in the error on the bucket create page. It's unnecessarily time-consuming for every admin who uses AWS to have to research this issue. Please remedy.

HooHost
답변함 일 년 전
0

What does global mean? If someone in the world creates a bucket with the name "csv-files", no one in the world can create a bucket with the same name?

Serhii
답변함 5달 전

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

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

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

관련 콘텐츠