Skip to content

RodrigoRVSN/yuta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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