Yes. Serverless ( v1.5 ) support for the authorized Cognito user pool.
If you are using a previous version of serverless, you need to upgrade v1.5 or later.
To authorize the api endpoint for the user pool, you need to specify the arn pool.
functions: hello: handler: handler.hello events: - http: path: hello method: get integration: lambda authorizer: name: authorizer arn: arn:aws:cognito-idp:us-east-1:123456789:userpool/us-east-1_XXXXXX
Read this article for more details.
source share