Question: Write a python program to upload the contents of a specified directory to an AWS S3 bucket. Your program should work as follows: a. Reads

Write a python program to upload the contents of a specified directory to an AWS S3 bucket. Your program should work as follows: a. Reads a folder name from the user. b. Creates an S3 bucket with the same name as the input folder name. c. Opens the folder and finds how many files in the folder and print a message with the number of files. To test this step, upload a folder (that contains at least four files) from your local computer to your Cloud9 environments file system. In python, the

Thank in advance following code is used to list all file names in a directory called reading. d. Write a for loop that reads all the file names from the folder and upload these files to the bucket. e. Write code to print on the screen the name of the objects in the bucket to make sure all the files are uploaded successfully.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!