Closed
Description
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
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Python, Java, and .NET
Future readers
Please react with 👍 and your use case to help us understand customer demand.