在EC2实例发送请求:http://169.254.169.254/latest/meta-data/public-ipv4
curl http://169.254.169.254/latest/meta-data/local-ipv4
curl http://169.254.169.254/latest/meta-data/public-ipv4
curl http://169.254.169.254/latest/meta-data/public-hostname
具体内容可以见:https://blog.youkuaiyun.com/Swallow_he/article/details/105711779