benny wanda
ITEC427 – Cloud Computing
Lab 7 – Working with S3
Driver Name:
Navigator Name:
AWS Resource:
Murty Chapter 3
Instructions
This lab exercise is designed to introduce you to the S3 services
Before you start the assignment download the S3.rb file from Lab 7 folder in blackboard to the working folder you have been using so far. Make sure you have the S3.rb and aws.rb in the same file
Total points: 30
Problem 1 – Working with buckets. Text book reference pg 62 to 74
1. Working with Buckets (15 points)
a. Describe in a few sentences what a bucket represents for the S3 service
b. Use irb to create three different buckets. Copy and paste the irb command and the response in your answer
c. Use irb to list all the buckets you create. Also examine the response to
i. Identify owner information
ii. Print out the name and listing of each bucket that you created
d. Use irb to delete one of the buckets and demonstrate that it is deleted by listing all the buckets again
Make sure you copy and paste the irb command and response in your answer
Problem 2 – Working with S3 objects. Text reference – pages 72 -97
1. Working with objects (15 points)
a. Briefly describe what is an S3 object.
b. Briefly describe the following
i. Object keys and hierarchical naming
ii. What is meant by object immutability
c. Create a simple text document object with data and metadata in one of the buckets you create earlier
d. Create an image file and upload the image file into the same bucket
e. Retrieve the data of the S3 text file object that you created in step c and write it into a file. Show the content of the file
f. Write the irb code that you would use to stream the S3 object and download it straight to a file
g. List all the objects that you have uploaded in the S3 bucket
h. Delete one of the objects you created and then repeat g to show that it is no lnger listed
Make sure you incorporate all irb commands and relevant output dumps to provide verification that you completed a particular question correctly