Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 969 Bytes

readme.md

File metadata and controls

38 lines (24 loc) · 969 Bytes

Sending a request to API Gateway triggers the Lambda function, which will upload the file to S3, already on CDN, and return the CDN link.

Flow at Excalidraw

image

Request example

image

How to reproduce

  • You can see this post to have a more step-by-step guide!

Technologies

  • Golang
  • AWS SDK
  • AWS S3
  • AWS CloudFront
  • AWS Lambda
  • AWS API Gateway
  • AWS CloudWatch

Using AWS SAM CLI for testing lambda functions locally

go build -o yuta ./src/* && sam local start-api

or

scripts/run-sam.sh

Curiosity: Yuta from JJK was chosen as the name of the repo because it storage a lot of cursed energy, it's a reference to the storage on S3