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
En esta página del sitio puede ver el video en línea How to create Lambda server (based on Python) in AWS de Duración hora minuto segunda en buena calidad , que subió el usuario Tech Tutorials - Learn by doing 31 octubre 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 211 veces y le gustó 5 a los espectadores. Disfruta viendo!