You can version your files in the S3, it is enabled at the bucket level. Whenever the user upload a file, the S3 is going to create a version of that file at the selected key, same key overwrite will change the version: version 1, version 2, version 3, etc. You can enable versioning under the Properties tab in your S3 console. Note:

  • Any file that is not versioned prior to enabling versioning will have version “null”
  • Suspending versioning does not delete the previous versions

Why versioning

It is best practice to version your buckets:

  • Protect against unintended deletes (ability to restore a version)
  • Roll back to a previous version

Back to parent node: Amazon S3

Cloud_computingAWSAWS_CLF-C02AWS_storageAmazon_S3S3_versioning

Reference* - Udemy Ultimate AWS Certified Cloud Practitioner CLF-C02