By using AWS re:Post, you agree to the Terms of Use

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


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 ?

asked 5 years ago415 views
1 Answer

Pull up a web browser and go to, 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).

answered 5 years 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