title: Unable to connect AWS IOT with AWS Elasticsearch
body: <p>I am new to AWS and IOT. I am trying to connect my raspberry pi with AWS IOT and from there I am trying to push the data to Elasticsearch.</p>
  <p>I have managed to to connect raspberry pi with AWS IOT and able to see the data I have sent from Raspberry pi through &quot;Test&quot; in IOT console.</p>
  <p>I have created topic rule and configured elasticsearch endpoint, added IAM role.</p>
  <p>In rule destination i've entered the elasticsearch endpoint and created it but it shows the following message.</p>
  <p>&quot;Awaiting confirmation. Confirmation message sent on 2020-11-26T11:22:55.602Z. The destination responded with HTTP status code - 405.&quot;</p>
  <p>I am unable see any message in cloudwatch logs to get the token and confirm the destination.</p>
  <p>My elastic search access policy is set to open access to domain and the iot policy is as follows</p>
  <p>{
  &quot;Version&quot;: &quot;2012-10-17&quot;,
  &quot;Statement&quot;: [
  {
  &quot;Effect&quot;: &quot;Allow&quot;,
  &quot;Action&quot;: &quot;iot:<em>&quot;,
  &quot;Resource&quot;: &quot;</em>&quot;
  }
  ]
  }</p>
  <p>I dont know whether I am doing it correct. Please help me to confirm the destination and stream data to elastic search.</p>
  <p>Thanks in advance,</p>