title: How to access AWS Elasticsearch from Node JS
body: <p>I have my nodejs lambda trying to index data into ES, but it's failing because of this error:</p>
  <blockquote>
  <p>2018-01-15T23:39:09.578Z   (node:1) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 131): Authorization Exception ::</p>
  <p>User: anonymous is not authorized to perform: es:ESHttpPost on resource: ****</p>
  </blockquote>
  <p>I have applied AmazonESFullAccess policy to the Lambda function role.<br />
  What am I missing?</p>