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,820 points
24,119 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, 2019 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
• 58,020 points
4,527 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,170 points
19,868 views
0 votes
1 answer

What are the different properties option for a S3 bucket?

The different properties that are associated with ...READ MORE

answered Feb 13, 2019 in AWS by Nitya
2,070 views
0 votes
2 answers

How to rename a S3 bucket name?

Hi, You can rename your S3 bucket name. ...READ MORE

answered Oct 5, 2020 in AWS by akhtar
• 38,260 points
40,864 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error: upload failed:Parameter validation failed

You have not mentioned the file you ...READ MORE

answered Nov 27, 2018 in AWS by Shuvodip Ghosh
11,446 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP