Add function to get ec2 metadata to inventory helper