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

serverless-autoprune-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-autoprune-plugin

Serverless Auto-Prune Plugin - Delete old AWS Lambda versions

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by150%
Maintainers
1
Weekly downloads
 
Created
Source

serverless-autoprune-plugin

serverless

This Serverless 0.5.x plugin deletes old AWS Lambda versions.

Overview

The plugin lets you delete old AWS Lambda versions from your account.

serverless-autoprune-plugin heavily inspired by Nopik's serverless-lambda-prune-plugin but adds some much needed functionality such as limiting pruning to a specific region, project and function. It is fully compatible with Serverless 0.5.5 and higher.

Installation

  1. Install the plugin module.

    npm install serverless-autoprune-plugin --save will install the latest version of the plugin.

    If you want to debug, you also can reference the source repository at a specific version or branch with npm install https://github.com/arabold/serverless-autoprune-plugin#<tag or branch name>

  2. Activate the plugin in your Serverless project.

    Add serverless-autoprune-plugin to the plugins array in your s-project.json.

    {
      "name": "my-project",
      "custom": {},
      "plugins": [
        "serverless-autoprune-plugin"
      ]
    }
    

Usage

This plugin adds a new function command prune:

serverless function prune [ function-name [...] ]

You can specify one or multiple function names to prune, omit any function names to prune the functions in the current directory tree, or specify -a or --all to prune all functions of the project.

Options

  • -r|--region <region>: prune only a specific region (defaults to all regions).
  • -n|--number <number>: keep last N versions (defaults to 3).
  • -a|--all: prune all functions of the current project.

Releases

0.1.0

  • Initial release

To Dos

  • Optionally prune during function deploy

Keywords

FAQs

Package last updated on 08 May 2016

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