1.4 KiB
1.4 KiB
-
Full list of endpoints:
-
Region
-
Instance ID
-
AMI ID (image ID)
-
Public hostname (containing public IP as well)
-
MAC address
-
Owner ID
- http://169.254.169.254/network/interfaces/macs/<MAC_address>/owner-id
-
Security Groups
- http://169.254.169.254/network/interfaces/macs/<MAC_address>/security-groups
-
Subnet ID
- http://169.254.169.254/network/interfaces/macs/<MAC_address>/subnet-id
-
Subnet IP range
- http://169.254.169.254/network/interfaces/macs/<MAC_address>/subnet-ipv4-cidr-block
-
User-Data (instance startup script)
- http://169.254.169.254/latest/user-data/
- Accepts BASH scripts as well as cloud-init files, which are in YAML
-
IAM role name
-
IAM temporary credentials
- http://169.254.169.254/latest/meta-data/iam/security-credentials/demo-role.ec2
- These credentials allow one to assume the IAM role of the instance from any AWS client (including the CLI) until the credentials are reset (every six hours)