Gathering detailed insights and metrics for serverless-apigateway-log-retention
Gathering detailed insights and metrics for serverless-apigateway-log-retention
Gathering detailed insights and metrics for serverless-apigateway-log-retention
Gathering detailed insights and metrics for serverless-apigateway-log-retention
Control the retention of your AWS ApiGateway access logs and execution logs.
npm install serverless-apigateway-log-retention
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
5 Stars
31 Commits
7 Forks
8 Watchers
5 Branches
7 Contributors
Updated on Oct 03, 2023
Latest Version
1.1.0
Package Id
serverless-apigateway-log-retention@1.1.0
Unpacked Size
40.22 kB
Size
5.92 kB
File Count
5
NPM Version
9.1.2
Node Version
18.12.1
Published on
Oct 02, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Control the retention of your ApiGateway access logs and execution logs.
From your target serverless project, run:
npm install serverless-apigateway-log-retention
Add the plugin to your serverless.yml:
1plugins: 2 - serverless-apigateway-log-retention
Configuration happens 'globally' via custom.apigatewayLogRetention
.
The plugin uses AWS profile configured under provider.profile
or defaults to AWS credentials set in the environment.
If you can't directly connect to the internet, the plugin supports proxy which you can set via any of the following environment variables:
- HTTP_PROXY
- HTTPS_PROXY
- FTP_PROXY
- WSS_PROXY
- WS_PROXY
By default the plugin assumes the API name format to be [STAGE]-[SERVICE_NAME]
. If your API name format is [SERVICE_NAME]-[STAGE]
, set provider.apiGateway.shouldStartNameWithService
to true like so:
1provider: 2 name: aws 3 apigateway: 4 shouldStartNameWithService: true
If you want to use a custom API name, set it via provider.apiName
like so:
1provider: 2 name: aws 3 apiName: 'my-custom-api-name'
PLEASE NOTE THAT THE PLUGIN REQUIRES THE FOLLOWING AWS PERMISSIONS:
CloudWatch Logs
ApiGateway
Plugin Options
accessLogging.enabled
(optional) - Whether or not to update access logging retention policy. Set to false by default.
accessLogging.days
(required) - Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653 and 'never expire'.
executionLogging.enabled
(optional) - Whether or not to update execution logging retention policy. Set to false by default.
executionLogging.days
(required) - Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653 and 'never expire'.
serverless.yml
- Enabled for execution logging and disabled for access logging:
1service: sample 2 3plugins: 4 - serverless-apigateway-log-retention 5 6provider: 7 name: aws 8 9custom: 10 apigatewayLogRetention: 11 executionLogging: 12 enabled: true 13 days: 'never expire'
serverless.yml
- Enabled for access logging and execution logging:
1service: sample 2 3plugins: 4 - serverless-apigateway-log-retention 5 6provider: 7 name: aws 8 9custom: 10 apigatewayLogRetention: 11 executionLogging: 12 enabled: true 13 days: 14 14 accessLogging: 15 enabled: true 16 days: 7
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 7/13 approved changesets -- score normalized to 5
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More