How to check host availability with AWS Lambda and minimal footprint