@zackteo internal Route53 might suite better for name resolution
route53 or tag your cluster machines and filter them out from ec2 list and looking for the tags ... if you go for stuff like autoscaling groups then reasonably naming random machines that pop up gets complicated