title: How can I create a AWS APIGateway Custom Authorizer using stage variables in Terraform?
body: <p>I see that AWS ApiGateway now provides the ability to pass stage variables to a custom authorizer lambda in the console, by selecting the 'Request' type payload and listing the variables that should be passed though.</p>
  
  <p>However, we create our AWS resources exclusively via Terraform (no manual intervention allowed), and the Terraform docs currently say: </p>
  
  <pre><code>type - (Optional) The type of the authorizer. TOKEN is currently the only allowed value. Defaults to TOKEN.
  </code></pre>
  
  <p>Is there some way to force the payload type to be 'REQUEST' programmatically, and pass in stage variables? </p>