My lambda can use events["zip_code"]
when testing it in the management console and configuring the test event to have that.
How can I configure my APIgateway to pass zip_code ?
I've tried hundreds of different approaches over several hours. this should take about 30 seconds to figure out!
Current (stripped down) attempt:
I create a lambda. It can refer to event[zip_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.
I have tried:
event["zip_code"]
event["query_parameters"]["zip_code"]
event["queryStringParameters"]["zip_code"]
but they all give nil.
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.