jacob-meacham / serverless-plugin-bind-deployment-id

:link: Serverless plugin to bind the randomly generated deployment id to custom resources
MIT License
33 stars 7 forks source link

enable logging #1

Closed Noah-Vivial closed 7 years ago

Noah-Vivial commented 7 years ago

I'm attempting to use this plugin to enable logging on my API gateway.

I ended up with something like this. ` Resources: deployment: Properties: StageName : ${self:provider.stage} ApiGatewayStage: Type: AWS::ApiGateway::Stage Properties: DeploymentId: Ref: deployment RestApiId: Ref: ApiGatewayRestApi StageName : ${self:provider.stage} MethodSettings:

I'm not quite sure what I need the deployment section, if I remove it I actually get two stages, one __unused_stage, and the other the actual stage. Any ideas why I actually need the deployment__ section?