code: async function getInitOptions(args) {
    const { debug, endpoint, host, port, profile, region } = args
    const options = { debug, host, port, profile, region }
    options.endpoint = getAWSEndpoint({ endpoint })
    options.credentials = await getAWSCredentials()
    return options
  }
docs: Composes server initialization options from CLI arguments
  @param {Boolean} args.debug    - debug flag
  @param {String}  args.endpoint - aws elasticsearch endpoint
  @param {String}  args.host     - proxy host
  @param {Number}  args.port     - proxy port
  @param {String}  args.profile  - aws credentials profile
  @param {String}  args.region   - aws region
  @return {Promise}