brefphp / secrets-loader

Load secret values from SSM into environment variables
https://bref.sh/docs/environment/variables.html#secrets
MIT License
13 stars 9 forks source link

Add support for Parameter and Secrets Lambda Extension cache #8

Open selfsimilar opened 1 year ago

selfsimilar commented 1 year ago

https://aws.amazon.com/blogs/compute/using-the-aws-parameter-and-secrets-lambda-extension-to-cache-parameters-and-secrets/

AFAICT, this will require adding a new layer to the serverless.yml, which would be a documentation issue, and then code changes to support this. Currently this project already caches values, so it would be up to the maintainer to decide if the extension layer would replace the current cache function (and simplify the code), or act as an alternative. Happy to give some time to implementing this if you think this is a good idea.