In this article we will create an AWS Lambda function which will fetch image from url passed via API endpoint and after some file checks the image will be saved to AWS S3 storage. Code will be written in JavaScript for Node.js environment and Serverless framework will help us with deployment to AWS.

Image for post
Image for post
Serverless ~ Lambda ~ S3


  • installed Node.js and NPM on your local machine

Flow diagram of Lambda function


Martin Babinec

An eager software developer daily going beyond event horizon and back. @emetrop

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store