Using the web console to create a bucket with versioning enabled

Follow these steps to create a basic versioning-enabled bucket:

  1. Log in to your AWS account and go to the S3 dashboard.
  2. Click Create bucket:

Creating a bucket
  1. Give your bucket a globally unique name. 
  2. Click Next.
  3. Check the box to Keep all versions of an object in the same bucket. This enables versioning so that you can revert objects to their former state if necessary:

Versioning a bucket
  1. Click Next.
  1. On the next screen, leave the defaults as they are – we don't want our buckets to ever be made public:

Bucket access
  1. Click Next.
  1. Review the bucket settings on the following screen and click Create bucket:

Reviewing the bucket settings
  1. Once the bucket has been created, click on its name and take a look at the tools that are available to administer the new bucket:

Bucket administration
  1. Since we enabled versioning on this bucket, let's test it out to see how it works.
  1. Create a text file on your desktop and add a single line to the file:

Creating a file to upload
  1. Click the Upload button and upload that file to the new bucket:

Uploading a file
  1. Click Next. Accept the defaults on the following screen and click Next again.
  2. On the next screen, inspect the various storage classes that are available. It's worth spending some time learning the pros and cons of each class. Pick Standard:

Storage class
  1. Scroll down to the Encryption option. Select the Amazon S3 master key. The object will be encrypted seamlessly, without requiring you to manually encrypt or decrypt it. Encryption is handled behind the scenes for you.
  1. On the final screen, click Upload:

File upload
  1. Click the object name to go to a screen dedicated to the object:

Object administration
  1. Note that there is an object URL at the bottom, but if you click it, you will get an error since we didn't make this object public!
  2. Click the Download button to retrieve a copy of the object. Open it to confirm that it's the same as what we uploaded.
  3. Edit the file on your desktop to add a new line. 
  4. Go back to the bucket administration and click Upload again. Upload a new copy of the file using the same procedure we outlined in the previous steps.
  5. Click the object name, and then click the Latest version link next to the name. Download each version to confirm that the content matches your expectations:

When versioning is enabled, all object versions are retained indefinitely
..................Content has been hidden....................

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