The versioned bucket market-menus-11q8xk5 had a good menu.csv. This morning someone uploaded a broken one, then deleted menu.csv altogether.
-
List the versions of
menu.csv, delete markers included:shaws s3api list-object-versions --bucket market-menus-11q8xk5 --prefix menu.csv -
Save the broken version, the newest real one, to
~/broken-menu.csvfor the incident report. -
Bring
menu.csvback. -
Make the good version, the oldest one, the latest again.