Custom Authorizer ID created outside Serverless Framework

Is there any option to use an Authorizer ID to configure into a api gw rest function?

In this post talks about to use the ‘arn’ attribute, but this creates a new authorizer that points to the Lambda with specified arn.

I think there’s no attribute to do this and I would also ask if there’s a chance to overwrite the generated “TokenApiGatewayAuthorizer” CloudFormation resource with a fake reference.


Sorry, I didn’t realize that the following applies also to “http” events:

            type: TOKEN
            authorizerId: <ID_OF_YOUR_AUTHORIZER>
1 Like