-
Notifications
You must be signed in to change notification settings - Fork 153
Feature request: ability to set maxAge
and decrypt
via environment variables for Parameters
#1380
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
maxAge
and decrypt
via environment variables for Parameters
Hi @mikebroberts, thank you for taking the time to open this feature request after our discussion on Discord. Generally speaking I think this should be feasible and that it's a good feature to add. Before confirming and adding it to the backlog please allow me some time to look at the codebase and I'll get back to you here. If confirmed, we'll have the feature in one of the next versions and before GA release. |
cc @heitorlessa, @jeromevdl - you might want to consider this feature too (omitting .NET for now since they don't have the utility yet). |
Leave with us! @rubenfonseca @leandrodamascena If I don't create an issue in the Python repo, please do - let's implement this, should be quite fast to do it. |
Just to follow up on this: I have opened a PR with the new env variables. They should be available in the next beta release or the one right after. |
|
Use case
I typically want to always set "decrypt" to true when getting parameters (since that works just fine whether an underlying SSM param is encrypted or not, and I'm accessing infrequently enough that costs and rate limiting is not a concern), and further I'd like to have a much longer default TTL for caching parameters so that I don't have to configure on every request.
Solution/User Experience
Be able to set env vars for default values for the parameters module, e.g. :
POWERTOOLS_PARAMETERS_TTL = 86400 (1 day)
POWERTOOLS_PARAMETERS_DECRYPT = true
(see also discussion in Discord at https://discordapp.com/channels/1006478942305263677/1088151329538580631/1088483265003925564)
Alternative solutions
No response
Acknowledgment
Future readers
Please react with 👍 and your use case to help us understand customer demand.
The text was updated successfully, but these errors were encountered: