go back  36 - Create an AWS Lambda Function




This challenge write-up first appeared on PyBites.

Life is about facing new challenges - Kostya Tszyu

Hi Pythonistas, a new week, a new 'bite' of Python coding! We are delighted to have Michael Herman (Real Python) back to deliver this week's challenge. Prepare to learn some useful new skills and above all have fun!

Enter Michael.

AWS Lambda

Amazon Web Services (AWS) Lambda is an on-demand compute service that allows you to run code in response to events or HTTP requests. In other words, you can run scripts and apps without having to provision or manage servers in an infinitely-scalable environment where you pay only for usage.

As of writing, Lambda supports code written in JavaScript (Node.js), Python, Java, and C#.

The challenge

Create an AWS Lambda function that is triggered by an event and then performs an action.

For example:

Event Action
Image added to S3 Image is processed
HTTP Request via API Gateway HTTP Response
Log file added to Cloudwatch Analyze the log
Scheduled event Backing up files
Scheduled event Synchronization of files

For more, check out the Examples of How to Use AWS Lambda guide.

Resources

Get credit!

See our INSTALL doc how to fork our challenges repo to get cracking.

This doc also provides you with instructions how you can submit your code to our community branch via a Pull Request (PR). We will feature your PRs in our start-of-the-week challenge review (previous editions).


Keep Calm and Code in Python!

-- Michael