From the course: AWS for Developers: S3
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Python SDK operations - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: S3
Solution: Python SDK operations
(upbeat music) - [Instructor] So now it's time for me to provide you with the solution that I created for this exercise. We'll start by looking at the code here. I didn't modify any of the methods from any of the work that we've done throughout this chapter, so I just used all of our existing methods. We'll start here on line 120. So I created a bucket. I uploaded a file from my local directory, called F1, to that bucket. I then copied a file from our primary bucket, the one that we're using for this course, over to that transient bucket, and the file that I copied was F3. I kept the name the same. Now, on line 123, I get a list of files from the bucket itself. So from the transient bucket, I get a list of files. I go ahead and store those files into a list so that I can use that later on. Now, I put a printout there so that you can see where we're at. And on line 25 I iterate across that list of files and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Setting up an basic Python script2m 49s
-
(Locked)
Installing the SDK Boto31m 34s
-
(Locked)
Creating a bucket6m 10s
-
(Locked)
Binary object manipulation6m 50s
-
(Locked)
Bucket manipulation4m 59s
-
(Locked)
Bucket security5m 25s
-
(Locked)
Presigning URLs2m 54s
-
(Locked)
Deleting a bucket2m 3s
-
(Locked)
Challenge: Python SDK operations39s
-
(Locked)
Solution: Python SDK operations2m 51s
-
(Locked)
-
-