2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
Hello,
Please try with the s3api as below to meet your requirements to list the keys based on last modified date
aws s3api list-objects-v2 --bucket bucket_name --query "Contents[?contains(LastModified, '2023-02-22')].{Key: Key}" --output=text
répondu il y a un an
0
Hi,
You can use the s3api list-objects command to achieve that:
aws s3api list-objects --bucket MY-BUCKET --query "Contents[?contains(LastModified, '2023-01')].{Key: Key}" --output text
Above allows you to filter the Lastmodified attribute.
Otherwise you can simply run:
aws s3 ls s3://MY-BUCKET --recursive --human-readable --summarize > s3_files.txt
and see results in the file
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 4 mois
- AWS OFFICIELA mis à jour il y a un an