Code Challenge 36 – Create an AWS Lambda Function – Review

By on 3 October 2017

In this article we review last week’s Create an AWS Lambda Function code challenge.

Submissions

  • mjhea0: for this challenge, I created a tutorial that details how to use AWS Lambda and API Gateway to create a code evaluation API. Live demo.

  • bbelderbos: as per Real Python’s article I set up my Lambda function to receive payload via API Gateway. The lambda retrieves a PR number (id) via a POST request and retrieves the associated .py files via the GH API. It stores them in /tmp and runs PEP8 against them. If good it returns ‘ok’, else it shows the violations.

    TODOS: add a webhook for our Challenges repo to run this automatically. It would be nice to run unittests on test_*.py files. You could actually turn this into a simple CI which when done I will write an article about. Project here.

Hacktoberfest

Make sure you sign up for Hacktoberfest so each Code Challenge PR you do counts towards earning some cool swag! You can check your progress here.


Keep Calm and Code in Python!

— Bob and Julian

Want a career as a Python Developer but not sure where to start?