Open
Description
This is a Bug Report
Description
When trying to deploy a service that uses apiKeys and shared apiGateway it returns an error:
An error occurred: ApiGatewayApiKey1 - Value of property RestApiId must be of type String.
Using the following config:
provider:
name: aws
runtime: nodejs8.10
apiKeys:
- privateApiKey
apiGateway:
restApiId: xxxxxxxx
restApiRootResourceId: yyyyyyyy
Shared apiGateway works fine without apiKeys, and apiKeys work without shared apiGateway.
Full stack trace:
ServerlessError: An error occurred: ApiGatewayApiKey1 - Value of property RestApiId must be of type String.
at provider.request.then (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:112:33)
From previous event:
at AwsDeploy.monitorStack (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/monitorStack.js:26:12)
at provider.request.then (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:95:30)
From previous event:
at AwsDeploy.update (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:95:8)
From previous event:
at AwsDeploy.BbPromise.bind.then (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:112:12)
From previous event:
at AwsDeploy.updateStack (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/lib/updateStack.js:106:8)
From previous event:
at AwsDeploy.BbPromise.bind.then (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/index.js:129:39)
From previous event:
at Object.aws:deploy:deploy:updateStack [as hook] (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/index.js:125:10)
at BbPromise.reduce (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:390:55)
From previous event:
at PluginManager.invoke (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:390:22)
at PluginManager.spawn (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:408:17)
at AwsDeploy.BbPromise.bind.then (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/index.js:95:48)
From previous event:
at Object.deploy:deploy [as hook] (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/plugins/aws/deploy/index.js:91:10)
at BbPromise.reduce (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:390:55)
From previous event:
at PluginManager.invoke (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:390:22)
at PluginManager.run (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:421:17)
at variables.populateService.then.then (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/Serverless.js:157:33)
at runCallback (timers.js:763:18)
at tryOnImmediate (timers.js:734:5)
at processImmediate (timers.js:716:5)
at process.topLevelDomainCallback (domain.js:102:23)
From previous event:
at Serverless.run (/Users/dmitriy/.config/yarn/global/node_modules/serverless/lib/Serverless.js:144:8)
at serverless.init.then (/Users/dmitriy/.config/yarn/global/node_modules/serverless/bin/serverless:43:50)
at <anonymous>
Similar or dependent issues: