Tries to GET self-describing JSON with instance identity or timeout after 10 seconds
Tries to GET self-describing JSON with instance identity or timeout after 10 seconds
future JSON with identity data
Tries to make blocking request to EC2 instance identity document On EC2 request takes ~6ms, while on non-EC2 box it blocks thread for 3 second
Tries to make blocking request to EC2 instance identity document On EC2 request takes ~6ms, while on non-EC2 box it blocks thread for 3 second
some context or None in case of any error including 3 sec timeout
Tries to GET instance identity document for EC2 instance
Tries to GET instance identity document for EC2 instance
future JSON object with identity data
Recursively parse AWS EC2 instance metadata to get whole metadata
Recursively parse AWS EC2 instance metadata to get whole metadata
full url to the endpoint (usually http://169.254.169.254/latest/meta-data/)
future JSON object with metadata
Handle URL which should be handled in different ways e.g.
Handle URL which should be handled in different ways e.g. we can't GET public-keys/0-key-name, we should change it to public-keys/0 to get data
current URL
modified URL if we're trying to get on of special cases
Module with parsing EC2-metadata logic
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html