Skip to content

Error with jwt autorizers #146

@davidGCR

Description

@davidGCR

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions