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

Cannot read property 'Fn::Join' of undefined when specifying a User Pools authorizer #51

Closed
SeptiyanAndika opened this issue Jun 5, 2017 · 5 comments
Labels
Milestone

Comments

@SeptiyanAndika
Copy link

SeptiyanAndika commented Jun 5, 2017

Attempting to deploy i get error Cannot read property 'Fn::Join' of undefined, this is the logs terminals.

Serverless: Packaging service...
Serverless: Preparing alias ...

Type Error ---------------------------------------------

 Cannot read property 'Fn::Join' of undefined

 For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless

Your Environment Information -----------------------------
OS: darwin
Node Version: 6.9.1
Serverless Version: 1.14.0

can you help me, thanks?

@HyperBrain
Copy link
Member

HyperBrain commented Jun 5, 2017

Can you provide more details on your serverless.yml or your service configuration, or can you provide a test configuration with which I can reproduce the issue?
I assume that this is a bug that is restricted to a specific resource type or trigger.

@SeptiyanAndika
Copy link
Author

SeptiyanAndika commented Jun 5, 2017

this is my serverless.yml

service: users

provider:
  name: aws
  runtime: nodejs6.10

  stage: dev
  region: us-west-2
  profile: xxxxxx


functions:
  authAdmin:
    handler: authorizer.custom
  hello:
    handler: handler.hello
    events:
      - http:
          path: hello
          method: get
          authorizer:
            arn: arn:aws:cognito-idp:us-west-2:xxxxx:userpool/us-west-xxxx
  helloAdmin:
    handler: handler.helloAdmin
    events:
      - http:
          path: admin
          method: post
          authorizer:
            name: authAdmin    

plugins:
  - serverless-offline
  - serverless-aws-alias

Thanks

@HyperBrain
Copy link
Member

HyperBrain commented Jun 6, 2017

Many thanks for the information 🙌 . I'm sure it has something to do with the authorizer declarations. I will look into the issue soon.

@HyperBrain HyperBrain added the bug label Jun 6, 2017
@HyperBrain HyperBrain added this to the 1.2.1 milestone Jun 6, 2017
@SeptiyanAndika
Copy link
Author

@HyperBrain
Copy link
Member

Just isolated the issue. It is caused by:

authorizer:
  arn: arn:aws:cognito-idp:us-west-2:xxxxx:userpool/us-west-xxxx

The plugin should ignore User Pools authorizers and pass them unchanged. Working on a fix.

@HyperBrain HyperBrain changed the title Cannot read property 'Fn::Join' of undefined Cannot read property 'Fn::Join' of undefined when specifying a User Pools authorizer Jun 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants