title: How to pass Post Parameter from API gateway to Lambda
body: <p>I am creating a demo project for learning Serverless framework.</p>
  <p>I have a Lambda Function taking input of two parameters from event object in following way:</p>
  <p><code>operandOne = event[&quot;operandOne&quot;]</code>
  <code>operandTwo = event[&quot;operandTwo&quot;]</code></p>
  <p>I have created a API Gateway which calls this lambda function with this parameters.</p>
  <p>I have been following this link till now for my answer but still haven't figured out how to implement. - <a href="https://stackoverflow.com/questions/56188864/aws-lambda-clarification-on-retrieving-data-from-event-object">AWS Lambda: Clarification on retrieving data from event object</a></p>
  <p>Above given answer has three ways to pass the parameter, from which I am interested in third option. &quot;3) Directly on the event object&quot;</p>
  <p>It can be done with the help of mapping template from AWS console. But I am trying to find a way to use cloud formation(Writing mapping template in yaml file) for the same purpose for learning.</p>