I want to reference an external aws resource in serverless framework. However, if it does not exist, I want to fall back to a default value
For example:
functions:
create:
handler: posts.create
events:
- http:
path: posts/create
method: post
authorizer: arn: xxx:xxx:Lambda-Name
For authorizer
, I want to reference a function if it exists, and if it does not exist, to default to another value