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
En esta página del sitio puede ver el video en línea Create cloud watch event to trigger Lambda function de Duración hora minuto segunda en buena calidad , que subió el usuario Cloud Synapse Academy 01 abril 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 2,144 veces y le gustó 15 a los espectadores. Disfruta viendo!