Cross stack reference for Custom Lambda Authorizer

Hi everyone, I’m using a custom lambda authorizer for authorization in several stacks. I’ve done some research and I found the existence of Cross-stack References and they are extremely useful. What I want to do is be able to export either the authorizer name or Arn (in my case would be a Lambda Arn) to use it in all other stacks. Unfortunately, in my firsts test I realized(correct me if I’m wrong) that only resources can be exported as cross stack references. I also found that an authorizer can be created as a resource (which I find very useful) but all the examples I have seen so far only take Cognito as example but I haven’t seen any example using a lambda authorizer.

Please, can anybody tell me:

  1. If its possible how can I export the lambda authorizer arn
  2. How can I describe an authorizer as a resource and where should I declare the handler as it will be a lambda authorizer.

Thanks in advance.

1 Like

I’m having the same problem. Have you figured this out?

Same problem here. Any help would be appreciated.