-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmd_AWS.lst
8 lines (8 loc) · 1.12 KB
/
cmd_AWS.lst
1
2
3
4
5
6
7
8
curl http://169.254.169.254/latest/meta-data/hostname,curl_169.254.169.254_latest_meta-data_hostname
curl http://169.254.169.254/latest/meta-data/ami-id,curl_169.254.169.254_latest_meta-data_ami-id
curl http://169.254.169.254/latest/meta-data/instance-id,curl_169.254.169.254_latest_meta-data_instance-id
curl http://169.254.169.254/latest/meta-data/security-groups,curl_169.254.169.254_latest_meta-data_security-groups
curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/`cat /sys/class/net/eth0/address`/public-ipv4s,curl_169.254.169.254_latest_meta-data_network_interface_macs_eth0
curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/`cat /sys/class/net/eth1/address`/public-ipv4s,curl_169.254.169.254_latest_meta-data_network_interface_macs_eth1
curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/`cat /sys/class/net/eth2/address`/public-ipv4s,curl_169.254.169.254_latest_meta-data_network_interface_macs_eth2
curl http://169.254.169.254/latest/meta-data/network/interfaces/macs/`cat /sys/class/net/eth3/address`/public-ipv4s,curl_169.254.169.254_latest_meta-data_network_interface_macs_eth3