You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the AuthorizerUrl
Serverless Error ---------------------------------------
An error occurred: RoleApiGatewayAuthorizerdev - Invalid Authorizer URI: :${stageVariables.SERVERLESS_ALIAS}arn:aws:apigateway:us-east-1:lambda:path/2015-03-31/functions/arn:aws:lambda:us-east-1:123456789:function:authorizer/invocations.
Authorizer URI should be a valid API Gateway ARN that represents a Lambda function invocation..
As an example I have this service, which references a custom authorizer within the project:
I also noticed null values in the DependsOn section of the Permissions for the custom authorizer lambda, as well as a missing FunctionName, which seem to stem from the similar cause as mentioned in #83
@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.
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 #83The text was updated successfully, but these errors were encountered: