0

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?

2
  • 2
    There's really nothing AWS Lambda specific about this question. You just need to look into how to accomplish this task using the AWS SDK, and then use the AWS SDK in your Lambda function. Commented Dec 21, 2016 at 14:36
  • Lambda function are written using nodejs/python/Java/C#. Which language are you planning to use. Commented Dec 21, 2016 at 16:33

1 Answer 1

2

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)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.