serverless-aws-alias icon indicating copy to clipboard operation
serverless-aws-alias copied to clipboard

Error: The API doesn't include a resource

Open ghost opened this issue 4 years ago • 5 comments

When I deploy Serverless with this plugin I get the following error. This error is shown in the alias, in the information of the 'API Gateway':

The API with ID ***** doesn’t include a resource with path /* having an integration arn:aws:lambda:********** on the ANY method.

In the log console, i can see 'Service Information' section with the number of resources. Curiously, with the plugin enabled, i have less resources

Log info with plugin:

Service Information service: test-project stage: test-dev region: eu-west-1 stack: test-project-test-dev resources: 13

Log info without plugin:

Service Information service: test-project stage: test-dev region: eu-west-1 stack: test-project-test-dev resources: 15

---------- packages info ---------

serverless version: 1.61.1 serverless-aws-alias: 1.8.0

Any idea what's going on?

ghost avatar Jun 16 '20 15:06 ghost

Hey, I was wondering whether you found what was the issue? I'm facing the same problem right now.

MontufarEric avatar Jul 15 '21 19:07 MontufarEric

I am having the same issue, were any of you able to figure out the reason ?

raghavddps2 avatar Mar 25 '22 14:03 raghavddps2

Also running into this issue, any of you guys manage to solve it?

nick-0101 avatar Jul 09 '22 23:07 nick-0101

Currently having the same issue, anyone seem to figure it out?

Colton-Gibson avatar Jul 19 '22 16:07 Colton-Gibson

I had the same error - not sure if it's caused by the same mistake. In my template.yaml file I had incorrectly written the path as Path: "user/login", BUT the user it should've been "/user/login"

ariastechnelogos avatar Jul 26 '22 20:07 ariastechnelogos