title: How to check aws ec2 is running or not using aws lambda (boto3)
body: <p>I want to know whether my instance is in running state or not, if its in running state then only file will get copied from s3 into my ec2 instance and then file will run in that machine.  </p>