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:
DataTraceEnabled: true
HttpMethod: ""
LoggingLevel: INFO
ResourcePath: "/"
MetricsEnabled: false`
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?
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?