title: Stream logs to elastic using aws cli
body: <p>I would like to enable the Stream to Amazon Elasticsearch Service from Cloudwatch to Elasticsearch.</p>
  
  <p><a href="https://i.stack.imgur.com/0c3Pn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0c3Pn.png" alt="enter image description here"></a></p>
  
  <p>I'm familiar with how to do that manually, I'm looking for a way to achieve that by running aws cli commands.</p>
  
  <p>assuming Elasticsearch is already configured, is there any way to automate the process ?</p>