In this video I will show you how to start and stop EC2 instances with lambda python. We will also use Amazon EventBridge to setup rules that will trigger the AWS Lambda that starts or stops EC2 instances.
🔔 Subscribe and never miss new videos: https://www.youtube.com/nktstudios?su...
🔴 AWS Cost Management Playlist: • AWS Cost Management Series
🔴 AWS Lambda Series: • AWS Lambda Series
✔️ Lambda and Test Events Source Code: https://gist.github.com/nktstudios/51...
⏱️TIMESTAMPS⏱️
0:00 Introduction to Starting and Stopping EC2 Instances with AWS Lambda Python
0:38 Setting up EC2 Instances
2:27 Setting up AWS Lambda in Python to Start and Stop EC2 Instances
2:58 Create AWS Lambda Role to Start - Stop EC2 Instances
5:10 Writing Lambda Code to Start - Stop EC2 Instances
9:28 Testing our Lambda that Starts and Stops EC2 Instances
10:44 Testing Stopping EC2 Instances with Lambda
11:28 Testing Starting EC2 Instances with Lambda
11:51 Using Amazon EventBridge to trigger Lambda
12:17 Create an Amazon EventBridge rule with Cron Expression to Start - Stop EC2 Instances
🔹 My Courses: http://nktstudios.net/courses
⚡ My Gear
Windows Laptop: https://amzn.to/3d4xaK6
Recording Mic (Blue Snowball): https://amzn.to/30K0PTP
Redragon Headset: https://amzn.to/33AMR8H
✅ Let's connect:
Website: http://nktstudios.net
💬 Twitter - @nktstudios
Facebook: / nktstudioz
DISCLOSURE: Some of the links on this page are affiliate links, meaning that, at no additional cost to you, I may earn a commission if you click through and make a purchase and/or subscribe. Affiliate commissions help us to continue making videos for you.
❤️ Thanks for watching.