I want to create simple Lambda script that return instances status. For example for instances that not running will return false, and if the instances is running will return true.
How can I do it using lambda?
I want to create simple Lambda script that return instances status. For example for instances that not running will return false, and if the instances is running will return true.
How can I do it using lambda?
Assuming you are using Python, you can use boto3's describe-instance-status function (http://boto3.readthedocs.io/en/latest/reference/services/ec2.html#EC2.Client.describe_instance_status)