Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in AWS by (19.1k points)

How can I recursively list all the contents of a bucket using the AWS CLI similar to using find? on Unix. aws s3 ls s3://MyBucket --recursive complains about the unknown option.

http://docs.aws.amazon.com/cli/latest/reference/s3/index.html#directory-and-s3-prefix-operations claims that --recursive is a valid parameter.

1 Answer

0 votes
by (44.4k points)
edited by

This works for me:

aws s3 ls s3://MyBucket --recursive 

If not working, try updating the AWS CLI version, might work.

aws --version

Want more insights on AWS, Check out AWS Certification! 

Related questions

0 votes
2 answers
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

1.2k questions

2.7k answers

501 comments

693 users

Browse Categories

...