Skip to content

Failed to find logicalResourceId 'ApiGatewayRestApi' for the stack #641

@ml27299

Description

@ml27299

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Bug Report

Error Description
If you dont have permissions to run "cloudformation:DescribeStackResource" the package will throw an error saying the cloudformation stack doesnt exist instead of the real reason which is that the aws credentials used in the run dont have permissions to run "cloudformation:DescribeStackResource"

Command Run
e.g. sls deploy

Console Output

Error: Failed to find logicalResourceId 'ApiGatewayRestApi' for the stack ____

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

custom:
  customDomain:
    domainName: foo.example.tld
    basePath: bar
    createRoute53Record: true

Versions

  • Domain Manager version(s): [7.4]
  • Node/npm version: [e.g. Node 18]
  • Serverless Version: [e.g. v3.32.2]
  • Lambda Code [e.g. Javascript]

Possible Solution
just need to handle the error better here

and here

return await this.cloudFormation.send(

Also, would probably be beneficial to let people know that the "cloudformation:DescribeStackResource" is required here

https://www.serverless.com/plugins/serverless-domain-manager#prerequisites

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions