Back
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.
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!
Learn how we helped 50,000+ professionals like you !
1.2k questions
2.7k answers
501 comments
693 users