How to create Lambda server (based on Python) in AWS

Published: 31 October 2021
on channel: Tech Tutorials - Learn by doing
211
5

Project to Automatically Stop EC2 Server Based on Time

Donate a Coffee: https://www.buymeacoffee.com/teechtut...
Subscription Link: https://youtube.com/c/TechTutorialsLe...

ABOUT
This tutorial helps us to automatically stop ec2 instance that we specified in every two minute interval. It can be used as a reference to start and stop development servers when developers are off-duty.

USEFUL LINKS
Full Playlist:    • AWS Tutorial with hands on labs and p...  

AWS Basic Theory:    • AWS Full Tutorial Series For Beginner...  
Create Free AWS Account without Credit Card:    • Video  
Create and Manage AWS User, Group, Policy:    • How to create User, Group, IAM role a...  
Create VPC along with Subnets:    • How to Create VPC, Subnet, Security g...  
Create AWS EC2 Windows Server:    • How to create EC2 Windows instance (s...  
Create AWS ec2 Linux server (ubuntu) and launch web server:    • How to Create AWS EC2 & Host Website ...  
Create AWS Load Balancer:    • How to Create Load Balancer in AWS fo...  
AWS Auto Scaling:    • How to implement Auto Scaling in AWS ...  
Create AWS Lambda in python:    • How to create Lambda server (based on...  
Deploy High Availability Application with Elastic Beanstalk:    • AWS Elastic Beanstalk - Deploy Python...  

Commands Used
Python Script
import boto3
region = 'us-east-1'
instances = ['{REPLACE_WITH_INSTANCE_ID}']
ec2 = boto3.client('ec2', region_name=region)

def lambda_handler(event, context):
ec2.stop_instances(InstanceIds=instances)
print('Stopped Instances: ', str(instances))


Thank you for watching video AWS Lambda Tutorial in python. Tutorial series will help for AWS cloud practitioner essentials certification.

TO REPLAY VIDEO
   • How to create Lambda server (based on...  

Contact:
Twitter:   / techtutorial15  
Facebook:   / teechtutorial  
Instagram:   / teechtutorial  
Facebook Group:   / teechtutorial  
LinkedIn:   / rabindra-sapkota-7ba49a157  
Email: teechtutorial@gmail.com


On this page of the site you can watch the video online How to create Lambda server (based on Python) in AWS with a duration of hours minute second in good quality, which was uploaded by the user Tech Tutorials - Learn by doing 31 October 2021, share the link with friends and acquaintances, this video has already been watched 211 times on youtube and it was liked by 5 viewers. Enjoy your viewing!