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

Pubblicato il: 31 ottobre 2021
sul canale di: 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


In questa pagina del sito puoi guardare il video online How to create Lambda server (based on Python) in AWS della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Tech Tutorials - Learn by doing 31 ottobre 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 211 volte e gli è piaciuto 5 spettatori. Buona visione!