Invalid bucket name "s3:\\testdm": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$"

0 votes

I tried to view the content of my bucket but I am getting this error:

C:\Users\jino>aws s3 ls s3:\\testdm

Parameter validation failed:
Invalid bucket name "s3:\\testdm": Bucket name must match the regex "^[a-zA-Z0-9.\-_]{1,255}$"
Nov 26, 2018 in AWS by Jino
• 5,560 points
2,320 views

2 answers to this question.

0 votes

This is a regular expression error, you are getting this error because you are using the wrong syntax.

Your statement should be as follows:

C:\Users\jino>aws s3 ls s3://testdm/

This will work well.

answered Nov 26, 2018 by Nabarupa Das
0 votes

Instead of backslashes, use forward slashes

C:\Users\jino>aws s3 ls s3://testdm
answered Apr 24 by anonymous
Thanks! Very similar to @Das's answer.

Related Questions In AWS

0 votes
1 answer

Invalid Bucket name when creating s3 bucket with AWS SDK

AWS provides naming standards when naming an ...READ MORE

answered Aug 30, 2018 in AWS by Priyaj
• 56,520 points
335 views
0 votes
1 answer

How to download the latest file in a S3 bucket using AWS CLI?

You can use the below command $ aws ...READ MORE

answered Sep 6, 2018 in AWS by Archana
• 4,090 points
3,795 views
0 votes
1 answer
0 votes
1 answer

How to rename a S3 bucket name?

Yes, There's no option to rename bucket functionality ...READ MORE

answered Apr 2 in AWS by Archana
• 5,560 points
972 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer