DEV Community


Serving images from S3 using AWS Lambda and Golang!

Mathis Van Eetvelde
Result driven, passionate Site Reliability / Cloud Engineer with an exceptional technical background and a keen eye for details. Experienced with Golang, ML, DevOps, Kubernetes, Docker, AWS.
・1 min read

In this video I go over how to serve images straight from an S3 bucket without having to expose/publicize the S3 link using AWS Lambda and Golang.

Alt Text

As you will see it's not per-se straight forward due to API Gateway's & Lambda's weird issues which force you to Base64Encode your images before you can send them off. Once you understand this it's smooth sailing, we even implement caching inside the lambda function while making use of Lambda's pseudo statelessness.

Discussion (0)