title: AWS elastic-search. FORBIDDEN/8/index write (api). Unable to write to index
body: <p>I am trying dump a list of docs to an AWS elastic-search instance. It was running fine. Then, all of sudden it started throwing this error:</p>
  <pre><code>{ _index: '&lt;my index name&gt;',
    _type: 'type',
    _id: 'record id',
    status: 403,
    error: 
     { type: 'cluster_block_exception',
       reason: 'blocked by: [FORBIDDEN/8/index write (api)];' } }
  </code></pre>
  <p>I checked in forums. Most of them says that it is a JVM memory issue. If it is going more than 92%, AWS will stop any writes to the cluster/index. However, when I checked the JVM memory, it shows less than 92%. I am missing something here?</p>