I am trying to configure an authorizer for my REST API but something just isn’t right. I followed the instructions of a SO post that instructed to do it like so:
functions:
RequestUnicorn:
handler: src/backend/requestUnicorn.handler
events:
- http:
path: /rides
method: post
cors: true
integration: lambda
authorizer:
name: wildrydez
arn: arn:aws:cognito-idp:eu-central-1:183224933160:userpool/eu-central-1_HkrGy1GOi
I double-checked the arn of the pool after I deployed the app though no Authorizer is visible in the API Gateway
During my research I stumbled upon Fernandos article about Authorizers for HTTP APIs. Following his instructions I got the example working but I can’t map it to my use case, as I need a REST API.
Has anyone achieved this with serverless 1.70?
Your Environment Information ---------------------------
Operating System: win32
Node Version: 12.16.1
Framework Version: 1.70.1 (standalone)
Plugin Version: 3.6.11
SDK Version: 2.3.0
Components Version: 2.30.10