This was incredibly helpful. One note: public-ip-address appears to have been renamed to ip-address, according to the docs, which point to a list here of options you can use for hostnames: https://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html#options