mardi 8 octobre 2013

Howto get public hostname from within a EC2 instance?

wget -q -O - http://169.254.169.254/latest/meta-data/public-hostname
=> ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com

Aucun commentaire:

Enregistrer un commentaire