code: function loadFromPath(path) {
      this.clear();
  
      var options = JSON.parse(AWS.util.readFileSync(path));
      var fileSystemCreds = new AWS.FileSystemCredentials(path);
      var chain = new AWS.CredentialProviderChain();
      chain.providers.unshift(fileSystemCreds);
      chain.resolve(function (err, creds) {
        if (err) throw err;
        else options.credentials = creds;
      });
  
      this.constructor(options);
  
      return this;
    }
docs: Loads configuration data from a JSON file into this config object.
  @note Loading configuration will reset all existing configuration
  on the object.
  @!macro nobrowser
  @param path [String] the path relative to your process's current
  working directory to load configuration from.
  @return [AWS.Config] the same configuration object