From the course: AWS for Developers: S3
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
Presigned URLs - Amazon Web Services (AWS) Tutorial
From the course: AWS for Developers: S3
Presigned URLs
- [Instructor] There will be many times where you'll want to give temporary public access to a binary object in a private bucket. Enter into the picture presigned URLs. Presigning URLs is always a temporary thing for security purposes. The default behavior is one hour for link expiration, but that isn't always what you want. So let's go ahead and create a download link and show how that expiration function works. So first step here is to create the presigned URL. So in our terminal we are going to type aws s3 presign and we're going to go to our s3 bucket, our bucket name, I'm going to choose the lil1.txt file. And then we're going to set our expires-in and this is a time in seconds, in this case I'm going to choose 30 seconds. Now, I'm going to copy this link, I'm going to take that link to our browser, open up a new tab, execute that. And you'll see I have This is file 1. So it's actually pulled this file 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)
Introducing the Amazon CLI2m 56s
-
(Locked)
Configuring the Amazon CLI2m 17s
-
(Locked)
Creating a bucket: mb3m 11s
-
(Locked)
Working with single files: cp, mv, rm5m 43s
-
(Locked)
Working with directories: ls, sync5m 51s
-
(Locked)
Presigned URLs2m 4s
-
(Locked)
Challenge: Scripted operation49s
-
(Locked)
Solution: Scripted operation1m 47s
-
(Locked)
-
-
-