2 Answers
- Newest
- Most votes
- Most comments
0
Hi,
You could consider using AWS SDK for this use case as it would simplify your programming experience. There are few examples in the articles below which will help you understand how to list the S3 objects and its versions using the AWS SDK.
https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_ListObjects_section.html https://docs.aws.amazon.com/AmazonS3/latest/userguide/example_s3_ListObjectVersions_section.html
Thanks
0
Here is how you do this in the AWS CLI:
aws s3api list-object-versions \
--bucket _YOUR_BUCKET_NAME_ \
--prefix _YOUR_FOLDER_NAME_ \
--query Versions[*].[Key,VersionId]
Relevant content
- Accepted Answerasked 8 months ago
- Accepted Answerasked 3 years ago
- asked 10 months ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago