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

[ Websocket Api Gateway] Error: Failed to find CloudFormation resources for <domain name> #223

Closed
loganathansellappa opened this issue May 7, 2019 · 2 comments
Labels

Comments

@loganathansellappa
Copy link

Error Description
Getting Error: Failed to find CloudFormation resources for for sls deploy.

Command Run
I ran sls create_domain(works fine) and then sls deploy

Console Output

Error: Error: Failed to find CloudFormation resources for websocket.dev.logan.com

    at ServerlessCustomDomain.<anonymous> (/Users/xx/projects/websocket_service/node_modules/serverless-domain-manager/dist/index.js:536:23)
    at Generator.throw (<anonymous>)
    at rejected (/Users/xx/projects/websocket_service/node_modules/serverless-domain-manager/dist/index.js:5:65)

Domain Manager Configuration

custom:
  customDomain:
    domainName: ${DOMAIN-NAME}
    certificateArn: ${CERTIFICATE-ARN}
    basePath: '/'
    stage: ${self:provider.stage}
    createRoute53Record: false
    endpointType: regional
    hostedZoneId: zoneId

Versions

Domain Manager version(s): ^3.2.0
Node runtime: nodejs10.1
Serverless Version: v1.41.0
Lambda Code Javascript
@pavel-ignatiev
Copy link

pavel-ignatiev commented May 19, 2019

@Loganathan-S in my case there was a missing function event description in serverless.yml which lead to this error: I configured

functions:
  hello:
    handler: handler.hello

which really should be

functions:
  hello:
    handler: handler.hello
    events:
      - http:
          method: GET
          path: hello

Same story with a websocket function.

Update: Ok, this was already mentioned in #209 (comment)

@rddimon
Copy link
Collaborator

rddimon commented Dec 2, 2021

Hi there.
I so no update here for a long time and hope you have solved an issue

You can try to use our latest version of the plugin and let us know with feedback
Fill free to open a new issue

@rddimon rddimon closed this as completed Dec 2, 2021
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

3 participants