Updated: 15 October 2024
List all s3 buckets
aws s3 lsList all files in a s3 bucket
aws s3 ls s3://my_bucket_name --recursiveFind a file in a s3 bucket via grep
aws s3 ls s3://my_bucket_name --recursive | grep 'foobar\.txt'Query for a file (foobar.txt) in a s3 bucket using fragment of filename
aws s3api list-objects --bucket my_bucket_name --query "Contents[?contains(Key, 'ooba')]"