- Prior to zappa deploy stage-name, specify these 2 attributes in the zappa_settings.json
"api_key_required": true,
"api_key": "some existing API KEY id to use",
-
After zappa deploy stage-name, go to AWS console
-
trace the API KEY from the api_key (ID), then
-
work back to what Usage Plan uses that API Key
-
then in that Usage Plan, do the Add API Stage, picking the Lambda function and the stage
-
save settings
-
-
Test the API call in the rest client
GET https://someurl.execute-api.ap-southeast-1.amazonaws.com/dev
X-API-KEY: someapikey_gibberish_ish_ish
Content-Type: application/json