AWS API Gateway to Lambda Tutorial in Python | Build a REST API

Be A Better Dev August 22, 2019
Video Thumbnail
Be A Better Dev Logo

Be A Better Dev

@beabetterdev

About

This channel is devoted to helping you become a better developer by learning about AWS, cloud computing, and system design concepts. My name is Daniel Galati and I have nearly a decade of experience working in tech. I am currently working as a senior software engineer at Amazon. On my channel, you'll find videos on software development topics such as databases, design principles, and cloud computing. I put an emphasis on making complicated topics easier to understand. From time to time, I'll also share developer career advice gathered through real-life industry experience for those of you looking to break into, or are already established in the software industry. If you want to join me in becoming a better developer, hit that subscribe button now. Patreon Link: https://www.patreon.com/beabetterdev --------------------- Videos created are based on my own opinion and not related to any company, organization or person.

Video Description

API Gateway is a powerful AWS service that allows you to host a REST endpoint that is backed by an AWS service (in this case, Lambda). In this video, I show you how to create a REST Endpoint using API Gateway. Requests are served by a Lambda Function (as opposed to a traditional server). I start by creating a Lambda function and coding up a basic handler using Python (code below). From there, I create a API Gateway resource that acts as a publicly facing REST Endpoint. I continue to hook up the endpoint to the previously created Lambda function. Finally, I test the configuration by invoking the REST endpoint through my browser and verify my Lambda was serving the content back. Looking to get hands on experience building on AWS with a REAL project? Check out my course - The AWS Learning Accelerator! https://courses.beabetterdev.com/courses/aws-learning-accelerator 00:16 Example Overview 01:35 Create a Lambda Function 06:55 Create an API Gateway 08:00 Connect API Gateway to Lambda 🎉SUPPORT BE A BETTER DEV🎉 Become a Patron: https://www.patreon.com/beabetterdev 📚 MY RECOMMENDED READING LIST FOR SOFTWARE DEVELOPERS📚 Clean Code - https://amzn.to/37T7xdP Clean Architecture - https://amzn.to/3sCEGCe Head First Design Patterns - https://amzn.to/37WXAMy Domain Driver Design - https://amzn.to/3aWSW2W Code Complete - https://amzn.to/3ksQDrB The Pragmatic Programmer - https://amzn.to/3uH4kaQ Algorithms - https://amzn.to/3syvyP5 Working Effectively with Legacy Code - https://amzn.to/3kvMza7 Refactoring - https://amzn.to/3r6FQ8U 🎙 MY RECORDING EQUIPMENT 🎙 Shure SM58 Microphone - https://amzn.to/3r5Hrf9 Behringer UM2 Audio Interface - https://amzn.to/2MuEllM XLR Cable - https://amzn.to/3uGyZFx Acoustic Sound Absorbing Foam Panels - https://amzn.to/3ktIrY6 Desk Microphone Mount - https://amzn.to/3qXMVIO Logitech C920s Webcam - https://amzn.to/303zGu9 Fujilm XS10 Camera - https://amzn.to/3uGa30E Fujifilm XF 35mm F2 Lens - https://amzn.to/3rentPe Neewer 2 Piece Studio Lights - https://amzn.to/3uyoa8p 💻 MY DESKTOP EQUIPMENT 💻 Dell 34 inch Ultrawide Monitor - https://amzn.to/2NJwph6 Autonomous ErgoChair 2 - https://bit.ly/2YzomEm Autonomous SmartDesk 2 Standing Desk - https://bit.ly/2YzomEm MX Master 3 Productivity Mouse - https://amzn.to/3aYwKVZ Das Keyboard Prime 13 MX Brown Mechanical- https://amzn.to/3uH6VBF Veikk A15 Drawing Tablet - https://amzn.to/3uBRWsN     📚 References / Resources: Secure your REST API with Lambda Authorizer - https://youtu.be/al5I9v5Y-kA Lambda Beginner Overview - https://youtu.be/iUIWG0h2D84 Getting started with AWS: https://youtu.be/lTyqzyk86f8 Lambda function code - https://gist.github.com/djg07/678f7aea58b6c5b8d93c15af8577e0f2 ☁Topics covered include: - Lambda Function Creation - Lambda Function API Gateway Handler - API Gateway Resource - RESTful GET Endpoint 🌎 Find me here: Twitter - https://twitter.com/BeABetterDevv Instagram - https://www.instagram.com/beabetterdevv/ Patreon - Donations help fund additional content - https://www.patreon.com/beabetterdev #ApiGateway #Lambda #REST #AWS #Serverless

Upgrade Your Photography Gear

AI-recommended products based on this video