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,520 points
979 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,120 points
139 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
• 3,770 points
1,576 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,360 points
50 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.