Start EC2 instance from Lambda Function
2 EC2 Instances
2 Lambda Functions
Cloud watch Events to trigger Lambda Functions
Python Script
---------------------
import boto3
Enter the region your instances are in.
region = 'us-east-1'
Enter your instances here: ex. ['X-XXXXXXXX']
instances = ['i-0009181eccad65071']
def lambda_handler(event, context):
ec2 = boto3.client('ec2', region_name=region)
ec2.start_instances(InstanceIds=instances)
About Us
Cloud Synapses Academy providing a training and placement programs for freshers and experienced persons. We are helping you to get right job for yours area of interest.
100% PLACEMENT ASSITANCE
********************************************************************************************
Visit : https://cloudsynapses.academy/
LinkedIn : / cloud-synapse-academy
Insta : / cloudsynapseacademy
fb : / cloudsynapsesacademy
#aws #vpc #tutorial #cloudcomputing #networking #freshers #india #certification #certificationdump #certificationcourses
On this page of the site you can watch the video online Create cloud watch event to trigger Lambda function with a duration of hours minute second in good quality, which was uploaded by the user Cloud Synapse Academy 01 April 2023, share the link with friends and acquaintances, this video has already been watched 2,144 times on youtube and it was liked by 15 viewers. Enjoy your viewing!