trek10inc / serverless-secrets

An opinionated tool for safely managing and deploying Serverless projects and their secrets.
Other
165 stars 27 forks source link

fix function level secrets #38

Open sneha-nagole opened 6 years ago

sneha-nagole commented 6 years ago

Fixes issues reported in https://github.com/trek10inc/serverless-secrets/issues/31.

What is changed

  1. function level secrets have function name as key in .serverless-secrets.json
  2. serverless resolves variables after loading the plugins. This is causing issues when function definitions are coming from a file or secret values are using variables. This has been resolved by loading config.environments in lifecycle event "before:package:initialize".