How list Amazon S3 bucket contents by modified date?

后端 未结 8 1295
[愿得一人]
[愿得一人] 2020-12-14 06:30

Most of the time it happens that we load files in a common S3 bucket due to which it becomes hard to figure out data in it.

How can I view objects uploaded on a part

8条回答
  •  难免孤独
    2020-12-14 06:58

    This isn't a general solution, but can be helpful where your objects are named based on date - such as CloudTrail logs. For example, I wanted a list of objects created in June 2019.

    aws s3api list-objects-v2 --bucket bucketname --prefix path/2019-06
    

    This does the filtering on the server side. The downside of using the "query" parameter is it downloads a lot of data to filter on the client side. This means potentially a lot of API calls, which cost money, and additional data egress from AWS that you pay for.

    Source: https://github.com/aws/aws-sdk-js/issues/2543

提交回复
热议问题