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
Request example
- You can see this post to have a more step-by-step guide!
- Golang
- AWS SDK
- AWS S3
- AWS CloudFront
- AWS Lambda
- AWS API Gateway
- AWS CloudWatch
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