aws-lambda
Convert JPEG images from S3 bucket to BMP, GIF, PNG into another bucket
Setup two buckets
jpeg-images
for source jpeg imagesconverted-jpeg-images
for converted jpeg images
Setup lambda
- Create Go 1.x lambda function with S3 trigger (
jpeg-images
) - Build go executable
cd ./function
GOOS=linux go build -o converter-function main.go
- Make zip from
converter-function
executable and upload to AWS lambda
Test
Upload jpg image to jpeg-images
bucket