Skip to content

sashee/signed-urls-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S3 signed URLs sample code

Prerequisities

Deploy

  • terraform init
  • terraform apply

It outputs the frontend_url which serves the index.html and main.js from the frontend bucket. You'll see 2 buttons: they open an ebook using signed URLs from the private bucket.

Delete

  • terraform destroy

Structure

This is the main entry point of the infrastructure. It creates the private bucket, the singer Lambda function with the necessary permissions.

This is the Node.js backend implementation of the Lambda function.

The API Gateway to serve the Lambda function through a HTTP API.

This creates a frontend bucket with website configuration, and deploys the index.html and the main.js.

The frontend code is implemented in these files.

The books are from Project Gutenberg.

About

Demo code to show how to use signed URLs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published