Sharing a REQUEST type custom authorizer

I am trying to create a custom authorizer of type REQUEST and want to share it across my gateway.

I have luck with adding the authorizer configuration to one of my lambda’s serverless.yml and it successfully created the authorizer and I can see it on my AWS console.

The problem is with sharing the authorizer that was created already. My configuration is as below

functions:
functionName:

events:
- http:
method: get
path: /my/path
authorizer:
authorizerId:
Ref: MyAuthorizer
type: CUSTOM

resources:
Resources:
MyAuthorizer:
Type: AWS::ApiGateway::Authorizer
Properties:
Name: SomeName
AuthorizerResultTtlInSeconds: 0
IdentitySource: method.request.header.Authorization
RestApiId: myRestApiId
Type: REQUEST
AuthorizerUri: AuthorizerARN

But this configuration is creating a new authorizer instead of sharing the existing one.
Can someone share the right way to share the Authorizer or point out what I am doing wrong.

This is my first post and sorry for the bad indentation

Thanks in advance.

You declare authorizer of type CUSTOM as well as type REQUEST.