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.
- AWS CLI already configured with Administrator permission
- NodeJS 12.x installed
$ npm installnpm run buildcompile typescript to jsnpm run watchwatch for changes and compilenpm run testperform the jest unit testscdk deploydeploy this stack to your default AWS account/regioncdk diffcompare deployed stack with current statecdk synthemits the synthesized CloudFormation template
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