I have enabled versioning
on my S3 bucket to not lose/overwrite any data.
However now when I use the CLI it returns duplicates files:
aws s3 ls s3://my-bucket
# returns:
2021-01-25 10:54:02 49062 my_file.csv
2021-01-26 11:40:13 49062 my_file.csv
I could not see any optional flags in the API/CLI to only show the latest version of a file, so I am wondering how to properly work with versioning without seeing duplicate files. https://docs.aws.amazon.com/cli/latest/reference/s3api/list-objects-v2.html