This message was deleted.
# aws
s
This message was deleted.
l
The key is provided in the API request, not in the route configuration. There's a trivial example here (bullet 4): https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-how-to-call-websocket-api-wscat.html
To configure which key is used, there is the
routeKey
arg, which is mandatory, so presumably you're already providing that?
e
i am not referring to routing keys, but the header "X-API-Key'"
l
Ah. Afaik, apiKeyRequired controls routing keys, not headers...
e
what about this
the docs refer to the normal api-key header i mentioned above being the default place to get the key from the request
l
Then I'm afraid we've gone beyond my knowledge 😞
e
np, thank you for trying
figured it out, had to use awsx.apigateway.createAssociatedAPIKeys
🎉 2