trek10inc / serverless-secrets

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

Allow explicit configuration - added init method #27

Closed HyperBrain closed 6 years ago

HyperBrain commented 7 years ago

Fixes #26

The plugin now supports configuration by an in-memory .serverless-secrets file.

This is necessary for environments that do not allow for dynamic requires, e.g. webpack. The initialization can be done by calling the new optional client.init() function that will set the used config to the argument of the function.

If init() has not been called in the handler, the current behavior of the client is used.

HyperBrain commented 6 years ago

@azurelogic This PR is now finished (with the README instructions) and worked as stated in #26.

azurelogic commented 6 years ago

Sorry for the delay, @HyperBrain. I appreciate the work you've put in here. Trying to catch up on this between vacation, projects, and re:Invent.