title: Response "The action deploy is not valid for this web service" is coming when using api gateway
body: <p>I am using API gateway for an API deployed in ec2 instance. I am getting</p>
  <pre class="lang-js prettyprint-override"><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;Response&gt;
  &lt;Errors&gt;&lt;Error&gt;
  &lt;Code&gt;InvalidAction&lt;/Code&gt;
  &lt;Message&gt;The action deploy is not valid for this web service.&lt;/Message&gt;
  &lt;/Error&gt;&lt;/Errors&gt;
  &lt;RequestID&gt;b1e15e37-99a8-48ac-be69-9d1d8b7f6336&lt;/RequestID&gt;
  &lt;/Response&gt;
  </code></pre>
  <p>with status: 200. But it should return &quot;success&quot; as output. I have no idea why i am getting this output when i do a get request on the API endpoint.</p>
  <pre><code>{&quot;Success&quot;}
  </code></pre>