I am creating a demo project for learning Serverless framework.
I have a Lambda Function taking input of two parameters from event object in following way:
operandOne = event["operandOne"]
operandTwo = event["operandTwo"]
I have created a API Gateway which calls this lambda function with this parameters.
I have been following this link till now for my answer but still haven't figured out how to implement. - AWS Lambda: Clarification on retrieving data from event object
Above given answer has three ways to pass the parameter, from which I am interested in third option. "3) Directly on the event object"
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.