Skip to content

Ray0427/serverless-s3-uploader-cdk

Repository files navigation

Serverless S3 Uploader CDK

This is a project inspired by Serverless S3 Uploader development with CDK.

The Serverless S3 Uploader allows you to upload JPG files to Amazon S3 buckets from your web applications using pre-signed URLs.

The cdk.json file tells the CDK Toolkit how to execute your app.

Requirements

Installation

$ npm install

Useful commands

  • npm run build compile typescript to js
  • npm run watch watch for changes and compile
  • npm run test perform the jest unit tests
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk synth emits the synthesized CloudFormation template

Sequence

sequenceDiagram
participant C as Client
participant A as API Gateway
participant L as Lambda
participant S as S3
C ->> A: Get Pre-signed URL
A ->> L: Call handler
L ->> A: Return Pre-signed URL
A ->> C: Response Pre-signed URL
C ->> S: PUT object to Pre-signed URL
Loading

Reference

Releases

No releases published

Packages

No packages published