Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with jwt autorizers #146

Open
davidGCR opened this issue Mar 30, 2022 · 1 comment
Open

Error with jwt autorizers #146

davidGCR opened this issue Mar 30, 2022 · 1 comment

Comments

@davidGCR
Copy link

davidGCR commented Mar 30, 2022

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

@timm-stelzer-e-farm
Copy link

Same issue here.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants