title: How to refer to query string param in lambda
body: <p>My lambda can use <code>events["zip_code"]</code> when testing it in the management console and configuring the test event to have that.</p>
  
  <p>How can I configure my APIgateway to pass zip_code ?</p>
  
  <p>I've tried hundreds of different approaches over several hours.  this should take about 30 seconds to figure out!</p>
  
  <p>Current (stripped down) attempt:</p>
  
  <p>I create a lambda.  It can refer to <code>event[zip_code"]</code> no problem.  I create an API Gateway that points to it and I can call it.  However every attempt I make to refer to the query string parameter in the lambda has failed.</p>
  
  <p>I have tried:</p>
  
  <pre><code>event["zip_code"]
  event["query_parameters"]["zip_code"]
  event["queryStringParameters"]["zip_code"]
  </code></pre>
  
  <p>but they all give nil.</p>
  
  <p>I've tried publishing my lambda (probably needed) and I've tried deploying my API to a particular stage, 'DEV' but neither seemed to help.</p>