I am seeing below error, when I am trying to deploy both “StepFunctions” and “functions” in serverless.yml with apikeys to API gateway.
provider:
name: aws
apiKeys:
- my-apikey
functions:
stepFunctions:
Error:
Serverless: Operation failed!
An error occurred: ApiGatewayUsagePlan - Properties validation failed for resource ApiGatewayUsagePlan with message:
#/ApiStages/0/ApiId: expected type: String, found: JSONObject.
If I remove the “StepFunctions” part, it works, but with “StepFuntions” it is failing. Did anyone see this issue? Thank you for any help in advance!