Closed aleksdikanski closed 6 years ago
@aleksdikanski Good catch. I fully agree that referencing already existing authorizers should be possible and using authorizers that are referenced by only an ARN should be supported.
I will have a look at the PR soon.
Solved by #102
Hi,
I ran into an issue when using APIG custom authorizers, if the authorizers are not part of the project but are referenced by a ARN
Running
serverless deploy
will fail with the following error due to invalid parts of theAuthorizerUrl
As an example I have this service, which references a custom authorizer within the project:
which results in the correct CF template
Using a referenced custom authorizer (which is supported by serverless framework) produce an erroneous CF template:
I also noticed null values in the
DependsOn
section of the Permissions for the custom authorizer lambda, as well as a missingFunctionName
, which seem to stem from the similar cause as mentioned in #83