Open neeraj87 opened 1 year ago
Hi @neeraj87,
Thanks for raising this issue. The plugin seems to have problems with the definition of the restApiId
here:
provider:
apiGateway:
restApiId:
Ref: ApiGatewayRestApi
The restApiId
is not required to be defined for this plugin, unless the REST API is created in another project. If the project that this yaml is from creates it, then it should be picked up automatically.
Could you please try removing the restApiId
definition?
Hey, I am facing the same issue when using Import from another stack of the rest API ID:
provider:
apiGateway:
restApiId:
'Fn::ImportValue': ${self:custom.serviceSlug}-ApiGatewayRestApi
The error I am getting is: Expected params.restApiId to be a string
.
Since this is the only way to have multiple serverless configuration files to be deployed under the same rest API, I see no way to use this plugin without fixing this.
Thanks!
My objective is to add throttling to one of the public facing apis using APIGateway (rest api). I am using Lambda functions with Serverless framework.
My serverless.yml file looks like this
When I perform sls deploy or via Codebuild I get the following error
I don't know what I am doing wrong.