public static String getHostAddressForEC2MetadataService ( ) { String host = System . getProperty ( EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY ) ; return host != null ? host : EC2_METADATA_SERVICE_URL ; }
Returns the host address of the Amazon EC2 Instance Metadata Service .