code: public static String resolveCloudInstanceId(UtilityHttpClient httpClient) {
          // cached so we only attempt it once
          if (cachedCloudInstanceId == null) {
              String value = null;
              // AWS
              LOGGER.debug("Attempting to get AWS instanceId information");
  
              try {
                  String response = httpClient
                          .performGetRequest("http://169.254.169.254/2014-02-25/meta-data/instance-id");
                  // confirm it has a aws hostname
                  if (response != null) {
                      value = response;
                      LOGGER.debug(format("Found AWS instanceId: %s", value));
                  }
              } catch (Exception e) {
                  // NOOP try next supported cloud provider if it exists
              }
              // TODO: Add more as we support cloud platforms
              cachedCloudInstanceId = value;
          }
          return cachedCloudInstanceId;
      }
docs: public with UtilityHttpClient is for testing