Skip to content

serverless-plus/serverless-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Cleaner

Clean tools for serverless resources.

Support providers

Usage

Install dependencies

$ npm install

Config

Copy config.example.js to config.js, and config it for yourself.

For example, below is a config for provider Tencent:

module.exports = {
  tencent: {
    // resource region, if not config, you can input when running
    region: 'ap-guangzhou',
    // credentials
    credentials: {
      SecretId: '',
      SecretKey: '',
    },
    apigwOptions: {
      // serviceIds to exclude
      // before you run the clean script, please add your importance service ids here
      // so it will not be cleaned
      exclude: [],

      // serviceIds to include, priority higher than exclude
      // if include set, exclude will be ignored
      include: [],
    },
    scfOptions: {
      // function name to exclude
      // before you run the clean script, please add your importance function names here
      // so it will not be cleaned
      exclude: [],

      // function name to include, priority higher than exclude
      // if include set, exclude will be ignored
      include: [],
    },
    layerOptions: {
      // layer name to exclude
      // before you run the clean script, please add your importance function names here
      // so it will not be cleaned
      exclude: [],

      // layer name to include, priority higher than exclude
      // if include set, exclude will be ignored
      include: [],
    },
  },
};

Start

$ npm run clean

License

Copyright (c) 2020 Serverless Plus

Releases

No releases published

Packages

No packages published