node script to check the running ec2 instances