标题:
获得AWS EC2 实例ID值 instance ID
[打印本页]
作者:
linda
时间:
2020-10-22 18:25
标题:
获得AWS EC2 实例ID值 instance ID
curl
http://169.254.169.254/latest/meta-data/instance-id
或
wget
http://s3.amazonaws.com/ec2metadata/ec2-metadata
chmod u+x ec2-metadata
./ec2-metadata -i
参考:
https://marcelog.github.io/articles/get_aws_instance_id_ec2_read_metadata.html
欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/)
Powered by Discuz! 6.0.0