
TODO: Support for multiple and more intelligent filters. Now setting the filter to api as above, will only register the function with api in the path. Let's assume this case: functions: Controller1: handler: fault events: - http: path: api method: post Controller2: handler: tasks.apigw events: - http: path: task method: post The basic usage is to select the function you want to register in case there are moreĮnpdoint_filters: '^api(.*)' will only return the functions starting with api. serverless serverless plugins lambda aws aws lambda amazon amazon web services s3 website frontend 2.6.
Npm serverless secrets full#
The full path should be in consul_endpoint_key_path Endpoint filtersįor now it only support one filter. If enabled in enable_registration: true the service will be added to a KV of your choice. The parent for this options is service under the custom serverless-consul-variables structure. To reference a consul variable, you must prefix it with $ 1 port: 8500 service: enable_registration: true enpdoint_filters: '^api(.*)' consul_endpoint_key_path: 'dev_test/serverless/endpoints' plugins: - serverless-consul-variables custom: serverless-consul-variables: consul_settings: host: 127.0. If you use other values, please, put what you need here. You should change the consul host & port to match your build environment.įYI: It defaults to this values with no need to put them in serverless.yml. There are no other projects in the npm registry using serverless-secrets-mgr-plugin.

Start using serverless-secrets-mgr-plugin in your project by running npm i serverless-secrets-mgr-plugin. Latest version: 1.0.4, last published: 16 days ago. My use case was a CRON that would execute periodically. Serverless plugin to copy secrets from a CI/CD pipeline environment to AWS Secrets Manager. Check here to Set up AWS Credentials and Region for Development. Please read my Relational Database Serverless Notes if you plan on uses a serverless technology to heavily query a relational database. Constantly opening and closing database connections may be costly.


Then inside of your project's serverless.yml file add the following to the plugins section. Using a serverless technology to query a relational database should be used cautiously.
Npm serverless secrets install#
Documentationįirst install the plugin using npm or yarn npm install serverless-consul-variables -save-dev This Serverless plugin allows you to populate environment variables from a Consul server.
