I'm trying to set up a means to register an instance in route53 automatically when the instance is created, using salt and [this article](https://web.archive.org/web/20130906075018/http://cantina.co/2012/01/25/automated-dns-for-aws-instances-using-route-53/).

The article uses `ec2-metadata` to get the instance-id and and the hostname. I'm wondering if there is a way, using bash within the instance, to get the instance Name instead. `ec2-metadata` only seems to show the instance-id. Thanks in advance.