In this blog we have to create script to start/stop ec2 instances using python script based on tags, to launch instances check here. Prerequisites An AWS Account with An IAM User with IAM, Lambda, EC2 Access Create new role for our lambda functions. Let’s name role name as lambda-ec2-access, above policy gives access to instances which contains…