New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/fidellimited/serverless-plugin-select

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/fidellimited/serverless-plugin-select

  • v0.0.0-20220707075952-b2366840919b
  • Source
  • Go
  • Socket score

Version published
Created
Source

:no_entry: DEPRECATED :no_entry:

This repository is no longer being maintained. Further developments to this repository can be made by forking the project.

Serverless Select Plugin

No Maintenance Intended serverless npm version npm downloads license

Select which functions are to be deployed based on region and stage.

Note: Requires Serverless v1.12.x or higher.

Setup

Install via npm in the root of your Serverless service:

npm install serverless-plugin-select --save-dev
  • Add the plugin to the plugins array in your Serverless serverless.yml, you should place it at the top of the list:
plugins:
  - serverless-plugin-select
  - ...
  • Add regions or stages in your functions to select for deployment

  • Run deploy command sls deploy --stage [STAGE NAME] --region [REGION NAME] or sls deploy function --stage [STAGE NAME] --region [REGION NAME] --function [FUNCTION NAME]

  • Functions will be deployed based on your selection

  • All done!

Function
  • How it works? When deployment region or stage don't match function regions or stages, that function will be deleted from deployment.

  • regions - Function accepted deployment regions.

functions:
  hello:
    regions:
      - eu-west-1
      - ...
  • stages - Function accepted deployment stages.
functions:
  hello:
    stages:
      - dev
      - ...

Contribute

Help us making this plugin better and future proof.

  • Clone the code
  • Install the dependencies with npm install
  • Create a feature branch git checkout -b new_feature
  • Lint with standard npm run lint

License

This software is released under the MIT license. See the license file for more details.

FAQs

Package last updated on 07 Jul 2022

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