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.
Presigning URLs - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: S3
Presigning URLs
- [Narrator] There are many times when we need to create presigned urls for downloads and uploads. For this video, we're going to use the Python STK to create a download link that is signed, so that we can give public access to our private resources as needed. Let's go ahead and jump back into our Python file. And we'll create a new method called generate download link. We will need to know the bucket the title is in, the key for the file that we want to be able to download, and we need to have an expiration time and we're going to use it in seconds. And then of course our S3 resource. We will do a try, and we're going to get a response this time. We're going to use our meta client. And we will call generate presigned URL. Then we need to pass in the method of get underscore object. A Params dictionary. That Params dictionary will contain a bucket, which we will set it to our bucket. And it needs a key, which we will set…
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)
-
-