Last active
July 1, 2020 20:47
-
-
Save jimathyp/47da21f76718fdded54cf2a4d686ca55 to your computer and use it in GitHub Desktop.
[Autohotkey] #autohotkey
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;============================================================================== | |
; AWS EC2 instance data | |
;============================================================================== | |
::curl-meta-data:: | |
( | |
curl -w "\n" http://169.254.169.254/latest/meta-data/ | |
) | |
::curl-ipv4::curl -w "\n" http://169.254.169.254/latest/meta-data/local-ipv4 | |
::curl-publicipv4::curl -w "\n" http://169.254.169.254/latest/meta-data/public-ipv4 | |
::curl-ip::curl -w "\n" http://169.254.169.254/latest/meta-data/local-ipv4 | |
::curl-ami-id::curl -w "\n" http://169.254.169.254/latest/meta-data/ami-id | |
::curl-security-groups::curl -w "\n" http://169.254.169.254/latest/meta-data/security-groups | |
::curl-security-credentials::curl http://169.254.169.254/latest/meta-data/iam/security-credentials/ | |
::curl-instance-id::curl -w "\n" http://169.254.169.254/latest/meta-data/instance-id | |
::curl-instance-type::curl -w "\n" http://169.254.169.254/latest/meta-data/instance-type | |
::curl-az::curl -w "\n" http://169.254.169.254/latest/meta-data/placement/availability-zone | |
; curl -w "\n" http://169.254.169.254/latest/meta-data/block-device-mapping/ami | |
; curl -w "\n" http://169.254.169.254/latest/meta-data/block-device-mapping/root | |
; curl -w "\n" http://169.254.169.254/latest/meta-data/local-hostname | |
; curl -w "\n" http://169.254.169.254/latest/meta-data/network/interfaces/macs/ | |
::curl-subnet::curl -w "\n" http://169.254.169.254/latest/meta-data/network/interfaces/macs/$(curl -s http://169.254.169.254/latest/meta-data/network/interfaces/macs/)subnet-ipv4-cidr-block | |
; owner-id | |
; security-group-ids | |
; subnet-id | |
; subnet-ipv4-cidr-block | |
; vpc-id | |
; vpc-ipv4-cidr-block | |
; vpc-ipv4-cidr-blocks | |
; curl -w "\n" http://169.254.169.254/latest/meta-data/network/interfaces/macs/.../owner-id | |
; > ACCOUNT | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment