serverless-aws-secrets icon indicating copy to clipboard operation
serverless-aws-secrets copied to clipboard

Replace secrets in environment variables defined under function

Open robin-thomas opened this issue 2 years ago • 0 comments

The plugin replaces the environment variables defined under provide.environment key in serverless.yml.

Rather than restricting to this, replace the ones that can be defined like:

functions:
  function1:
    handler: index.handler
    env:
      ...

Also, make provider.environment as optional so that the plugin wont crash if its not set.

robin-thomas avatar Sep 20 '23 02:09 robin-thomas