AWS CLIS3

aws s3 ls

Lists S3 buckets or the objects within a bucket/prefix.

Syntax

aws s3 ls [<s3-path>]

Examples

List objects under a prefix

aws s3 ls s3://my-bucket/logs/

Related commands