Retrieve some context if available or nothing in case of any error
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 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
Construct metadata context
Set callback on successful instance identity GET request
Module with parsing GCE-metadata logic
https://cloud.google.com/compute/docs/storing-retrieving-metadata Unlike EC2 instance document, GCE does not provide an excerpt, but instad this module collect only meaningful properties