title: AWS elasticsearch disable replication of all indices
body: <p>I am using a single node AWS ES cluster. Currently, its health status is showing yellow which is obvious because there is no other node to which Amazon ES can assign a replica. I want to set the replication of all my current and upcoming indices to <code>0</code>. I have indices created in this pattern:</p>
  <pre><code>app-one-2021.02.10
  app-two-2021.01.11
  so on...
  </code></pre>
  <p>These indices are currently having <code>number_of_replicas</code> set to <code>1</code>. To disable replication for all indices I am throwing a PUT request in index pattern:</p>
  <pre><code>PUT /app-one-*/_settings
  {
   &quot;index&quot; : {
    &quot;number_of_replicas&quot;:0
   }
  }
  </code></pre>
  <p>Since I am using a wildcard here so it should set <code>number_of_replicas</code> to <code>0</code> in all the matching indices, which it is doing successfuly.</p>
  <p>But if any new index is created in the future let's say app-one-2021.03.10. Then the <code>number_of_replicas</code> is again set to 1 in this index.</p>
  <p>Every time I have to run a PUT request to set <code>number_of_replicas</code> to <code>0</code> which is tedious. Why new indices are not automatically taking <code>number_of_replicas</code> to <code>0</code> even if I am using a wildcard (*) in my PUT request.</p>
  <p>Is there any way to completely set replication (<code>number_of_replicas</code> to <code>0</code>) to 0, and doesn't matter if it's a new index or an old index. How can I achieve this?</p>