title: Adding parameters to aws lambda events using templates
body: <p>How do I add a (path) parameter to lambda function events using cloud formation templates?</p>
  
  <p>Strangely using:</p>
  
  <pre><code>DeleteItem:
            Type: Api
            Properties:
              Path: /item/{id}
              Method: delete
              Request:
              Parameters:
                Paths:
                  id: true
  </code></pre>
  
  <p>works using aws-sam-cli. However when I try to deploy using cloud formation it says that property Request is not defined. I got this request idea from <a href="https://serverless.com/framework/docs/providers/aws/events/apigateway/#request-parameters" rel="noreferrer">the serverless docs</a> but seems to only work locally. I can't find documentation on how to do this in templates so any help would be greatly appreciated.</p>