serverless-plugin-canary-deployments
serverless-plugin-canary-deployments copied to clipboard
Error with jwt autorizers
trafficstars
What are the steps to reproduce this issue?
- Create a httpApi with jwt authorizer
httpApi:
cors: true
authorizers:
serviceAuthorizer:
identitySource: $request.header.Authorization
issuerUrl: https://cognito-idp.${region}.amazonaws.com/${cognitoPoolId}
audience:
- ${client1Id}
iamRoleStatements:
- Effect: Allow
Action:
- codedeploy:*
Resource:
- "*"
plugins:
- serverless-plugin-canary-deployments
functions:
hellohttp:
handler: handler.hellohttp
events:
- httpApi:
method: GET
path: /hellohttp
authorizer: serviceAuthorizer
deploymentSettings:
type: Linear10PercentEvery1Minute
alias: LiveHttp
What happens?
Error:
TypeError: Cannot convert undefined or null to object
at Function.keys (
What were you expecting to happen?
Deploy normally with sls and canary
Any logs, error output, etc?
No.
Any other comments?
No.
What versions of software are you using?
serverless: 3.7.3 serverless-plugin-canary-deployments: 0.7.1
Same issue here.
serverless-plugin-canary-deployments: 0.8.0
serverless: 3.22.0