1 Answer
- Newest
- Most votes
- Most comments
0
The extension runs in your execution environment, so if you're running 5 functions in parallel then you have 5 execution environments so 5 independent instances of the extension.
Yes you could store a retreived secret in a global var rather than using the extension's caching - there's not much difference really. But there's still an advantage to using the extension for that initial retrieval if it means you reduce SDK initialisation cost.
Relevant content
- Accepted Answerasked a year ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago