Versioning bucket content

We enabled versioning when we created the bucket. Now, let's say we want to upload a new image to the bucket and replace the image path in the index.html with this new image:

  1. Select any image you like and upload it to the bucket:

  1. Once you have uploaded the image, copy the image link from the properties of the newly uploaded file:

  1. Now, open the index.html file and edit the code to replace https://yourimagelinkgoeshere with your image link:
<html>
<p>Everyone loves AWS!</p>
<p><a href="https://markocloud.com"><img src="https://yourimagelinkgoeshere" alt="" width="180" height="155" /></a></p>
</html>
  1. Now, save and upload index.html to the S3 bucket. You will now see that there are two versions of the index.html file in the bucket:

  1. When you browse to the address, you should see the latest index.html with your new image served from the S3 service. As you can see, this is a good and easy way to maintain your content versions and easily restore any previous version with little management overhead:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.189.186