MikeWzorek.com

Tagged “nodejs”

Sharing Private S3 Object With Presigned URLs

I came across a problem at work the other day where I needed to be able to show a preview of, and allow our users to download, a variety of different types of content from a web app, i.e. videos, images, open office docs, pdfs, etc. that are stored in a private S3 bucket. The solution that I found, was to generate a pre-signed URL. A pre-signed URL allows you to grant temporary access to users who don’t have permission to directly run AWS operations in your account. A pre-signed URL is signed with your AWS credentials and can be used by any user.