How to configure AWS S3 versioning only for restoring deleted files, not keeping multiple versions

Questions : How to configure AWS S3 versioning only for restoring deleted files, not keeping multiple versions


The Goal

I'd like to set up our bucket so that programming files can be restored in case they're Learning accidentally deleted. I don't want to Earhost keep multiple versions of a file, most effective however.

Files on S3 should look either like wrong idea this:

  • image.jpg (current)
  • image.jpg (non-current)

or this:

  • [delete marker] (current)
  • image.jpg (non-current)

Action Taken

I've enabled versioning on my bucket, use of case and I've set the lifecycle policy as United pictured below. Is this correct?

Total Answers 1

Answers 1 : of How to configure AWS S3 versioning only for restoring deleted files, not keeping multiple versions

Yes, your lifecycle policy is correct.

However, do note that you may have Modern multiple versions that are stored if ecudated they are all created within the same day some how as the minimum duration of days after anything else objects become noncurrent is currently not at all 1.

You cannot "prevent" multiple versions very usefull from existing simultaneously but you can localhost prevent them from existing from at least love of them 1 day1 after the last updated timestamp.

With the above policy, all versions - localtext except the latest version of the file + basic 1 non-current version before it - will one of the be deleted at:

latest object modified time + 1 day click & then rounded to next day midnight there is noting UTC


  • Version 1 > A.txt created > Thu 9th December 10:00 UTC
  • Version 2 > A.txt updated > Thu 9th December 12:00 UTC
  • Version 3 > A.txt updated > Thu 9th December 13:00 UTC

In this case, version 3 is the latest not alt current version & version 2 is the not at all latest non-current version so version 1 my fault would be scheduled for deletion.

Version 1 would be deleted on:

Thu 9th December 13:00 UTC + 1 day & issues then rounded to next day midnight UTC

Fri 9th December 13:00 rounded to next trying day midnight UTC

Saturday 10th December 00:00 UTC

Just pointing out FYI that there is the get 4th result 1 day "grace period".

1 1 day as in (1 day + duration of time round table needed to round up to next day midnight double chance UTC)

Top rated topics

Spyder: Windows permission errors when saving script

How to use Cypress Module API with Next.js and Vercel

Configure: error: working directory cannot be determined

SUM COUNTIFS wrong value in excel online of google docs

Finding N roots using an iterative procedure with fsolve (python)

Trying to get a response from a dll function using ctypes python

Bash: read filnames from file and check if it exist

How to communicate between two services in Fargate using docker compose

How to automatically adjust the <textarea> height to the inner text's height using only css without using javascript?

How to display data from database in listView - POWERBUILDER 11.0

Angular 6 TypeError: Cannot read properties of undefined (reading 'length') error

Converting a sequences of RGB images and depth files to mkv file format

Spring initializer Java version 15 is missing

Multitest p-values are different compared to graphpad prism?

Pause then resuming simulation in Anylogic

Libgdx Rendering Bitmap font to pixmap texture causes extremely slow rendering

Python return functions issue

Schema level deadlock on SQL Server between SELECTS (or other queries) and ALTER ROLE ... ADD MEMBER when creating credentials

In MongoDB, what is the time complexity of a query to find all records with row ids not in a given list?

JavaScript onclick event retrieve attribute?

How to use regexp_substr in Redshift

CSS : Scale and rotate in place multiple SVG backgrounds image on one element - possible without JS?

How to enable Figurecanvaskivyagg fit MDBoxLayout automatically?

Cosine Similarity in linear time using Lisp

React Bootstrap: How can I change the icon of Dropdown.Toggle from the arrow icon to some other icons from React Icon?

How check the state of individual checkbox in reactjs (material-table)

DolphinDB: why column names of a matrix are renamed

Fragment management access error visible return false

Running npm run dev causes Nextjs to change my jsx property in ts config file

Chart.js 3.6.2, Angular 10: Logarithmic Line chart Y-Axis problems. How to set and keep Y-Axis properties, even when data changes?

Nvidia-smi command not found on DJI Manifold 2G NVIDIA Jetson TX2

Can't find hyper link for this csv file on website

Bytebuddy--how to make a new method to invoke the original code of another (rebased) method?

Minimax Algorithm with TicTacToe (But each player can only have 3 tacs on board)

Update dynamic data in certain columns only

How to partially match a list and write matched characters in a data frame in python

Getting the message before the referenced message -

Forecasting in R: UseMethod model function error

Using ChoETL to print CSV file returns values to Console as "dynamic"

Split a fullname into first, middle, last and suffix

Most efficient way to enumerate and modify over a ConcurrentBag of objects

My "GetKeyDown" mettod doesn't work unity version 2018.4.34f1

How to draw a simulated ECG?

Flipping sprite by y axis when rotated past a certain point

How to compare 2 non-identical dataframes in python

Remove the Duplicate value item from 2 same format JSON objects in Java

Discord.js v13 Cannot read properties of undefined (reading 'roles')

Spark read job from gcs object stuck

How do I compile Tomcat mod_jk on a MacBook Pro M1 chip?

How to change the borderwidth and relief of 1 ttk combobox