Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-prune-plugin

Package Overview
Dependencies
Maintainers
0
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-prune-plugin

Serverless plugin to delete old versions of deployed functions from AWS

  • 2.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created

What is serverless-prune-plugin?

The serverless-prune-plugin is a Serverless Framework plugin that helps manage and clean up old AWS Lambda function versions and their associated artifacts. This is particularly useful for keeping your AWS environment tidy and avoiding hitting AWS limits on the number of Lambda versions.

What are serverless-prune-plugin's main functionalities?

Prune Old Versions

This feature allows you to automatically prune old versions of your Lambda functions, keeping only the most recent versions. In this example, the configuration keeps the last 3 versions of each function.

{
  "plugins": ["serverless-prune-plugin"],
  "custom": {
    "prune": {
      "automatic": true,
      "number": 3
    }
  }
}

Manual Pruning

This feature allows you to manually prune old versions of your Lambda functions. In this example, automatic pruning is disabled, giving you control over when to prune old versions.

{
  "plugins": ["serverless-prune-plugin"],
  "custom": {
    "prune": {
      "automatic": false
    }
  }
}

Custom Prune Command

This feature allows you to define a custom prune command in your package.json scripts. In this example, running `npm run prune` will keep the last 5 versions of each function.

{
  "scripts": {
    "prune": "serverless prune -n 5"
  }
}

Other packages similar to serverless-prune-plugin

Keywords

FAQs

Package last updated on 16 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc