In this video, I'll show you how to deploy a Python function that uses YouTube API on AWS Lambda using Stakpak, without ever logging into the AWS console in under 3 minutes.
We'll use Stakpak to generate infrastructure as code to:
Create the Lambda function with Python stack
Expose the function via a public URL without using an API Gateway
Package the function code into a ZIP
Add a Lambda layer for the requests package to use YouTube’s API
Timestamps:
0:00 - 0:07 Introduction
0:07 - 0:18 Python function using YouTube API
0:18 - 0:50 Stakpak infrastructure-as-code generation
0:50 - 1:22 Configuring variables
1:22 - 1:42 Modifying code generated
1:42 - 1:54 Sync to GitHub
1:54 - 2:24 Running Terraform commands: init, plan, and apply
2:24 - 2:33 Testing the deployed Lambda function via URL
2:33 - 2:43 Wrap-up
GitHub Repo: https://github.com/mfaw/youtube-api-l...
Signup now and try Stakpak: https://stakpak.dev/
Join Our Community!
We're building an active community of DevOps enthusiasts, developers, and experts who are eager to share knowledge, tips, and best practices. Join our Discord server to connect, learn, and grow together: / discord .
Don’t forget to like, subscribe, and hit the bell icon to stay updated on all tech things and StakPak.
/ dvpzla
https://stakpak.dev/
#AWS #Lambda #Stakpak #YouTubeAPI #Terraform #infrastructureascode #DevOps #AI #IDE