Use the aws commandline tool
To get a list of your ec2 instances with their decriptions:
aws ec2 describe-instances
to get for example the public dns for your instances:
aws ec2 describe-instances | jq .Reservations[0].Instances[0].PublicDnsName
To get a list of your ec2 instances with their decriptions:
aws ec2 describe-instances
to get for example the public dns for your instances:
aws ec2 describe-instances | jq .Reservations[0].Instances[0].PublicDnsName