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

failed to find a stack error #610

Open
0xNarumi opened this issue Dec 20, 2023 · 2 comments
Open

failed to find a stack error #610

0xNarumi opened this issue Dec 20, 2023 · 2 comments
Labels

Comments

@0xNarumi
Copy link

0xNarumi commented Dec 20, 2023

Support Question

Question

I can't figure out what is causing failed to find a stack error

Plus, when I successfully deployed with rest apiType option,
I got {"message":"Missing Authentication Token"} response

Command Run
sls create_domain and sls deploy

Console Output

Error: Failed to find a stack <project name>

    at CloudFormationWrapper.<anonymous>

Domain Manager Configuration
Replace this with your own serverless.yml file (anonymized, of course) to help us better resolve your issue.

 customDomain:
    basePath: ''
    domainName: ${self:custom.domains.${self:provider.stage}}
    securityPolicy: tls_1_2
    certificateName: '*.domain.im'
    stage: ${self:provider.stage}
    createRoute53Record: true
    endpointType: REGIONAL
    apiType: http
 customDomain:
    basePath: ''
    domainName: ${self:custom.domains.${self:provider.stage}}
    securityPolicy: tls_1_2
    certificateName: '*.domain.im'
    stage: ${self:provider.stage}
    createRoute53Record: true
    endpointType: REGIONAL
    apiType: rest

first yml config didn't work but the second did.
why can't apiType http find a stack?

FYI, this is my lambda function config.

functions:
  api:
    handler: src/index.handler
    events:
      - http:
          path: '{proxy+}'
          method: any
    timeout: 30

Versions

  • Domain Manager version(s): 7.3.3
  • Serverless Version: Framework Core: 3.38.0
  • Lambda Code : Javascript
@0xNarumi
Copy link
Author

0xNarumi commented Dec 20, 2023

 customDomain:
    basePath: ''
    domainName: ${self:custom.domains.${self:provider.stage}}
    securityPolicy: tls_1_2
    certificateName: '*.domain.im'
    stage: ${self:provider.stage}
    createRoute53Record: true
    endpointType: REGIONAL
    apiType: http

In my opinion, it seems that when the API gateway is created, an API type with "http" is not being generated. Even though I have configured the YAML as shown above, upon checking after a failure, there always seems to be a gateway created with "rest" as the API type.

@rddimon
Copy link
Collaborator

rddimon commented Feb 8, 2024

Hi @0xNarumi

It should be fixed in the version v7.3.5

Please try it out and let us know the result

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