title: Adding parameters to api using cloudformation
body: <p>I tried the cloudformation template that I found here...
  <a href="https://bl.ocks.org/magnetikonline/c314952045eee8e8375b82bc7ec68e88" rel="nofollow noreferrer">https://bl.ocks.org/magnetikonline/c314952045eee8e8375b82bc7ec68e88</a></p>
  
  <p>It works as expected. But I will like to provide parameters to the post request. My Curl command should look something like this...</p>
  
  <pre><code>curl -d "mynumber=12345" -X POST https://tyin2sswj2.execute-api.us-east-1.amazonaws.com/mycall
  </code></pre>
  
  <p>How do I handle it at API gateway in the cloudformation template? I have already set the environment variable at lambda function level. </p>
  
  <hr>
  
  <p>The template that does not work is this...</p>
  
  <p><a href="https://raw.githubusercontent.com/shantanuo/cloudformation/master/updated/lambda_api.tpl.txt" rel="nofollow noreferrer">https://raw.githubusercontent.com/shantanuo/cloudformation/master/updated/lambda_api.tpl.txt</a></p>
  
  <p>As it is clear that I am not able to pass the "mnumber" variable through the gateway.</p>
  
  <hr>
  
  <p>I have updated my template and now it deploys function and gateway corretly. And still the URL generated does not work and shows "internal server error" message.</p>
  
  <p><a href="https://raw.githubusercontent.com/shantanuo/cloudformation/master/testapi.tpl.txt" rel="nofollow noreferrer">https://raw.githubusercontent.com/shantanuo/cloudformation/master/testapi.tpl.txt</a></p>