Cannot read property 'Fn::Join' of undefined when specifying a User Pools authorizer
SeptiyanAndika opened this issue · 5 comments
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/serverlessYour Environment Information -----------------------------
OS: darwin
Node Version: 6.9.1
Serverless Version: 1.14.0
can you help me, thanks?
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.
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
Many thanks for the information 🙌 . I'm sure it has something to do with the authorizer declarations. I will look into the issue soon.
thanks @HyperBrain , for custom authorizer i use this
https://github.com/awslabs/aws-serverless-auth-reference-app/blob/master/api/lambda/authorizer.js
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.