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

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…

Contents