Reputation: 2116
Is there a way to restore an AWS S3 bucket or directory inside a bucket to its previous version.
Scenario where i find this useful is
selecting 50+ files, for deletion, inside multiple directories that are marked as older versions is tedious and highly impossible.
Upvotes: 0
Views: 2009
Reputation: 4471
In general it's bad idea to not have continuous integration in front of deployment website content to bucket. Having any test runner which check your build before it's uploaded to S3 is much better approach.
Anyway I have a solution for you. Please upload to S3 content of your website packed as ZIP/TAR archive. If build would fail, you can grab previous version of the archive, and unpack it into the bucket.
Upvotes: 1