π π π π π
My Personal Documentation
Steps Involved:
-
β Log into AWS Management console
-
β Choose region
-
β Navigate to the Amazon S3 console
-
(Amazon S3 buckets form a global namespace, even though each bucket is created in a specific region)
-
β Start the create bucket process
-
β Name your bucket
-
β Choose your region
- β Load your new bucket in the Amazon S3 console
- β Select Upload, then Add Files
- β Start Upload. You will see the status of your file in the Transfers section
- β Now open the properties for the object
- β Copy the Amazon S3 URL for the object
- β Paste the URL in the address bar of a new browser window or tab
- β When you get an XML error code AccessDenied
- β Go back to the Amazon S3 Console and select Make Public
- β Rename the object, but keep the same file extension.
- β Select Delete and Select OK when prompted if you want to delete the object
- β To verify, try to reload the deleted objectβs Amazon S3 URL (You should once again get the XML AccessDenied error message)
- β load the properties of your bucket. Donβt open the bucket.
- β Enable versioning in the properties and select OK to verify
- (Note that versioning can be suspended, but not turned off.)
-
β Create a text file with .txt extension on your computer and write what you want in the text file
-
β Save the text file to a location of your choosing
-
β Upload the text file to your bucket. This will be version 1
-
β After you have uploaded the text file to your bucket, open the copy on your local computer and change the words
-
Save the text file with the original filename
-
β Upload the modified file to your bucket
-
β Select Show Versions on the uploaded object
-
You will now see two different versions of the object with different Version IDs and possibly different sizes
- β Open the bucket containing the text file with the two versions
- β Select Hide Versions
- β Select Delete, and then select OK to verify
- β Your object will now be deleted, and you can no longer see the object
- β Select Show Versions
- Both versions of the object now show their version IDs
- β Open your bucket
- β Select Show Versions
- β Select the oldest version and download the object
- β Upload to the same bucket
- β Select Hide Versions, and the file should re-appear
To restore a version, you copy the desired version into the same bucket. In the Amazon S3 console, this requires a download then re-upload of the object. Using APIs, SDKs, or AWS CLI, you can copy a version directly without downloading and re- uploading.
- β Select your bucket
- β Under Properties, add a Lifecycle Rule
- β Explore the various options to add lifecycle rules to objects in this bucket
- do not implement any of these options, as you may incur additional costs
- Most lifecycle rules require some number of days to expire before the transition takes effect. For example, it takes a minimum of 30 days to transition from Amazon S3 Standard to Amazon S3 Standard-IA. This makes it impractical to create a lifecycle rule and see the actual result in an exercise
-
β Select your bucket
-
β In the Properties section, select Enable Website Hosting
-
β For the index document name, enter index.txt, and for the error document name, enter error.txt
-
Use a text editor to create two text files and save them as index.txt and error.txt. In the index.txt file, write the phrase βHello World,β and in the error.txt file, write thephraseβError Page.βSave both text files and upload them to your bucket.
-
β Make the two objects public
-
β Copy the Endpoint: link under Static Website Hosting and paste it in a browser window or tab
-
In the address bar in your browser, try adding a forward slash followed by a made- up filename
-
You should now see the phrase "Error Page" displayed.
-
β To clean up, delete all of the objects in your bucket and then delete the bucket itself