Open eahefnawy opened 5 years ago
Seems to work for me:
$ sls deploy
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service websocket-authorizer-example.zip file to S3 (25.84 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
..................................................................
Serverless: Stack update finished...
Service Information
service: websocket-authorizer-example
stage: dev
region: us-east-1
stack: websocket-authorizer-example-dev
resources: 22
api keys:
None
endpoints:
wss://xxxxxxxxxxx.execute-api.us-east-1.amazonaws.com/dev
functions:
connect: websocket-authorizer-example-dev-connect
default: websocket-authorizer-example-dev-default
auth: websocket-authorizer-example-dev-auth
layers:
None
Serverless: Run the "serverless" command to setup monitoring, troubleshooting and testing.
Sorry I wrote a reply to this and forgot to post it!
Thanks for responding, after looking more closely at your working output I realised my old Serverless instance was too old. After upgrading it now gives me an endpoint, sorry about that.
However, my S3 upload is much smaller than your 25.84 MB:
Serverless: Uploading service websocket-authorizer-example.zip file to S3 (2.09 KB)...
But it doesn't seem to make any difference, the sample is now working!
Is this still outstanding or was it done in /examples/aws-node-websockets-authorizers/?
I only ask because I followed that example and in the README it says "connect to the outputted wss url" but no WSS URL is displayed when I run
serverless deploy
so I'm wondering whether that example is incomplete?