CreateBucket operation: InvalidBucketName

0 votes
I am trying to create a bucket in S3 and am getting the following error.

aws s3api create-bucket --bucket NiteshDemo --region us-east-1

An error occurred (InvalidBucketName) when calling the CreateBucket operation: The specified bucket is not valid.
Nov 23, 2018 in AWS by Nitesh
• 2,920 points
503 views

2 answers to this question.

0 votes
There are certain rules you must follow while naming your bucket and again the most important of all is that your bucket name should be unique.

The other rules are your bucket name should start with a lowercase letter.
answered Nov 23, 2018 by Namitha
@Namitha, thank you it worked fine. Thank you for the rules, I will keep this in mind from the next time.
0 votes

Your bucket name cannot contain capital letters. You could try one of these instead:

niteshdemo

nitesh-demo

answered Jan 27 by therealrodk
@therealrodk, thank you it worked fine for me.

Related Questions In AWS

+1 vote
2 answers
0 votes
1 answer
0 votes
1 answer

Error creating Key Pair: You are not authorized to perform this operation

Try adding AmazonEC2FullAccess policy. If you are not sure how ...READ MORE

answered Sep 19, 2018 in AWS by Priyaj
• 56,900 points
415 views
0 votes
1 answer

Enterprise Cloud operation phase in AWS Migration

Yes @rishab, Enterprise Cloud Operation is a ...READ MORE

answered Jan 18 in AWS by Edureka
• 4,180 points
39 views
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 56,900 points
291 views
0 votes
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 56,900 points
659 views
0 votes
1 answer

Import my AWS credentials using python script

Using AWS Cli  Configure your IAM user then ...READ MORE

answered Nov 16, 2018 in AWS by Jino
• 5,560 points
458 views