serverless-plugin-canary-deployments icon indicating copy to clipboard operation
serverless-plugin-canary-deployments copied to clipboard

Error with jwt autorizers

Open davidGCR opened this issue 3 years ago • 1 comments
trafficstars

What are the steps to reproduce this issue?

  1. 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

davidGCR avatar Mar 30 '22 07:03 davidGCR

Same issue here.

serverless-plugin-canary-deployments: 0.8.0
serverless: 3.22.0

timm-stelzer-e-farm avatar Sep 08 '22 15:09 timm-stelzer-e-farm