serverless-api-gateway-execution-log-manager
This Serverless Framework plugin manages the API Gateway execution log groups automatically created in CloudWatch when execution logging is enabled in serverless.yml
. When enabling these logs, API Gateway automatically creates a CloudWatch log group named API-Gateway-Execution-Logs_[uniqueId]/[stage]
. This log group is not part of the CloudFormation stack deployed by Serverless Framework.
Installation
npm install serverless-api-gateway-execution-log-manager --save-dev
Usage
Add the following to your serverless.yml
:
Add the following to your serverless.yml
:
plugins:
- serverless-api-gateway-execution-log-manager
provider:
logs:
restApi:
level: INFO
executionLogging: true
fullExecutionData: true
This plugin does not have any configuration options (yet).