-
Notifications
You must be signed in to change notification settings - Fork 421
Feature request: ability to set maxAge
and decrypt
via environment variables for Parameters
#2041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
thank you @dreamorosi !! As fast as lightning.. ⚡ |
Hey @dreamorosi! Thank you for opening this issue. I see that you suggested setting the environment variable as I think it makes sense that we keep (when possible) the same configuration in all languages and will use the same name you used in Typescript. Any objections @heitorlessa @rubenfonseca? |
Hi Leandro, I created this issue using an initial suggestion from the customer before implementing it in our repo. Heitor has already reviewed the names in the PR, I think you should be good to go with |
Thanks for the prompt reply @dreamorosi! You are unstoppable :) |
Easy it easier to understand POWERTOOLS_CACHE_TTL than POWERTOOLS_PARAMETERS_TTL |
Hi @satishbpatil thanks for this suggestion. I agree that the variable name |
|
This is now released under 2.13.0 version! |
Use case
This is a cross-post from aws-powertools/powertools-lambda-typescript#1380 opened by mikebroberts, in turn generated by this Discord discussion.
Quoting:
Additional context:
At the moment customers have to specify
maxAge
anddecrypt
whenever they retrieve a parameter value. Some customer, like the OP, would instead like to set these settings at the function/environment level via env variable.The original discussion/issue was requested for the
SSMProvider
specifically, but I believe thatmaxAge
could apply to other providers as well.Solution/User Experience
Be able to set env vars for default values for the parameters module, e.g. :
Alternative solutions
Acknowledgment
The text was updated successfully, but these errors were encountered: