Example application for uploading files to S3 using pre-signed URLs
Switch branches/tags
Nothing to show
Clone or download
Latest commit 60162e7 Aug 8, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public Initial commit Aug 8, 2017
src Initial commit Aug 8, 2017
.gitignore Initial commit Aug 8, 2017
README.md Initial commit Aug 8, 2017
package.json Initial commit Aug 8, 2017

README.md

Serverless uploads to a private S3 bucket

This is an example application that allows you to upload files to S3 through a pre-signed URL. The pre-signed URL is retrieved through an API Gateway endpoint invoking a Lambda function. AWS Cognito is used to authenticate and authorize the request for the pre-signed URL. Through this method, you can upload files to an otherwise private S3 bucket.

The full setup is described in the diagram below and explained in my blog post: Using pre-signed URLs to upload a file to a private S3 bucket.

Serverless S3 upload architecture