https://github.com/rodrigorvsn/yuta
☁️ Upload a file to AWS S3 and return the Cloudfront link, using Lambda functions in Golang
https://github.com/rodrigorvsn/yuta
api-gateway aws cdn cloudfront cloudwatch go hacktoberfest lambda s3
Last synced: about 1 month ago
JSON representation
☁️ Upload a file to AWS S3 and return the Cloudfront link, using Lambda functions in Golang
- Host: GitHub
- URL: https://github.com/rodrigorvsn/yuta
- Owner: RodrigoRVSN
- Created: 2023-10-01T20:27:41.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-08T02:04:32.000Z (over 2 years ago)
- Last Synced: 2025-09-20T13:49:50.716Z (9 months ago)
- Topics: api-gateway, aws, cdn, cloudfront, cloudwatch, go, hacktoberfest, lambda, s3
- Language: Go
- Homepage: https://dev.to/rodrigorvsn/retrieve-cdn-link-of-a-file-sent-to-s3-by-lambda-function-on-aws-5607
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
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

# How to reproduce
- You can see this [post](https://dev.to/rodrigorvsn/retrieve-cdn-link-of-a-file-sent-to-s3-by-lambda-function-on-aws-5607) 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
```bash
go build -o yuta ./src/* && sam local start-api
```
or
```bash
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